From fc3e6b904a9768156d9f260de34a63a3a5897ecf Mon Sep 17 00:00:00 2001 From: Michel Ferrero Date: Mon, 30 Sep 2013 11:03:14 +0200 Subject: [PATCH] Fix TRIQSConfig for standalone projects Small fix to allow standalone project to use the triqs_set_rpath_for_target macro. modified: cmake/TRIQSConfig.cmake.in --- cmake/TRIQSConfig.cmake.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/TRIQSConfig.cmake.in b/cmake/TRIQSConfig.cmake.in index 4e7fbbe4..1b45e7d9 100644 --- a/cmake/TRIQSConfig.cmake.in +++ b/cmake/TRIQSConfig.cmake.in @@ -106,9 +106,9 @@ endmacro (triqs_add_all_subdirectories_with_cmakelist) # RPATH setting macro (triqs_set_rpath_for_target Target) - set_target_properties(${Target} PROPERTIES LINK_FLAGS -Wl,-rpath,${CMAKE_INSTALL_PREFIX}/lib) - set_target_properties(${Target} PROPERTIES INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib) - set_target_properties(${Target} PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) + set_target_properties(${Target} PROPERTIES LINK_FLAGS -Wl,-rpath,${TRIQS_PATH}/lib) + set_target_properties(${Target} PROPERTIES INSTALL_NAME_DIR ${TRIQS_PATH}/lib) + set_target_properties(${Target} PROPERTIES INSTALL_RPATH ${TRIQS_PATH}/lib) set_target_properties(${Target} PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE) set_target_properties(${Target} PROPERTIES BUILD_WITH_INSTALL_RPATH FALSE) set_target_properties(${Target} PROPERTIES SKIP_BUILD_RPATH FALSE)