diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cb11a31aa77f4ad1f480a6c808c14c063b5037d4..ac8e45d302a5c8cfb167f07dd79d6fcdcdcbf269 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -57,6 +57,7 @@ IF (UNIX) ENDIF (UNIX) TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${Boost_LIBRARIES}) +TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${JRL_MAL_LDFLAGS_OTHER}) INSTALL(TARGETS ${LIBRARY_NAME} DESTINATION lib) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index e5f4a1ffb395dcd20c783332c343fc5baee8d5f6..aa07ef22ef3c2650be8f8115b32a511f6ebbaa70 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -44,7 +44,9 @@ MACRO(DYNAMIC_GRAPH_TEST NAME) TARGET_LINK_LIBRARIES(${NAME} ${Boost_LIBRARIES}) # Search for jrl-mal. - PKG_CONFIG_USE_DEPENDENCY(${NAME} jrl-mal) + INCLUDE_DIRECTORIES(${JRL_MAL_INCLUDE_DIRS}) + LINK_DIRECTORIES(${JRL_MAL_LIBRARY_DIRS}) + TARGET_LINK_LIBRARIES(${NAME} ${JRL_MAL_LDFLAGS}) ENDMACRO(DYNAMIC_GRAPH_TEST)