Skip to content

Commit 6ba7525

Browse files
committed
Tweaks .pc file and corresponding CMakeLists.txt to work with DYAD's approach for using PerfFlow
1 parent 53a5e51 commit 6ba7525

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/c/config/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ install(FILES
4747

4848
# Create pkg-config .pc file
4949
set(PKG_CONFIG_LIBDIR ${CMAKE_INSTALL_PREFIX}/lib)
50-
set(PKG_CONFIG_LIBS "-L\${libdir} -lperfflow_runtime -L\${libdir} -lperfflow_parser -L\${libdir} -lWeavePass")
50+
set(PKG_CONFIG_LIBS "-L\${libdir} -lperfflow_runtime -L\${libdir} -lperfflow_parser -lssl -lcrypto")
5151

5252
configure_file(
5353
perfflowaspect.pc.in
54-
${CMAKE_CURRENT_BINARY_DIR}/perfflowaspect.pc)
54+
${CMAKE_CURRENT_BINARY_DIR}/perfflowaspect.pc
55+
@ONLY)
5556

5657
install(FILES ${PROJECT_BINARY_DIR}/config/perfflowaspect.pc
5758
DESTINATION share)

src/c/config/perfflowaspect.pc.in

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
Name: ${PROJECT_NAME}
1+
Name: @PROJECT_NAME@
22
Description: Analyze cross-cutting performance concerns of composite scientific workflows
3-
Version: ${PROJECT_VERSION}
4-
prefix=${CMAKE_INSTALL_PREFIX}
5-
libdir=${PKG_CONFIG_LIBDIR}
6-
Libs: ${PKG_CONFIG_LIBS}
7-
Cflags: -Wc,-Xclang,-load
3+
Version: @PROJECT_VERSION@
4+
prefix=@CMAKE_INSTALL_PREFIX@
5+
libdir=@PKG_CONFIG_LIBDIR@
6+
weavepass=${libdir}/libWeavePass.so
7+
Libs: @PKG_CONFIG_LIBS@
8+
Cflags:

0 commit comments

Comments
 (0)