From f7a44ad6dd19012703611761b1290ef8bc771341 Mon Sep 17 00:00:00 2001 From: Michel Ferrero Date: Fri, 2 Aug 2013 14:01:21 +0200 Subject: [PATCH] Allow to fix install_name_dir for OSX modified: cmake/TRIQSConfig.cmake.in --- cmake/TRIQSConfig.cmake.in | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/cmake/TRIQSConfig.cmake.in b/cmake/TRIQSConfig.cmake.in index f9149939..d99322b7 100644 --- a/cmake/TRIQSConfig.cmake.in +++ b/cmake/TRIQSConfig.cmake.in @@ -128,19 +128,9 @@ macro (triqs_add_rpath_to_triqs_install) target_link_libraries (-Wl,-rpath,@CMAKE_INSTALL_PREFIX@/lib) endmacro() - - -macro(triqs_set_rpath_options) -if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") - set(CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib") - set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) -else() - set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) -endif() -endmacro() - 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) endmacro() # A macro to create a local copy of triqs with the added python