3
0
mirror of https://github.com/triqs/dft_tools synced 2025-01-12 14:08:24 +01:00

cmake: add macro to fix rpath to triqs install

- to be tested on mac
This commit is contained in:
Olivier Parcollet 2013-07-25 15:14:15 +02:00
parent b196561a9a
commit f12eccc69f

View File

@ -42,9 +42,9 @@ list (REMOVE_DUPLICATES TRIQS_INCLUDE_ALL)
set (TRIQS_PYTHON_INTERPRETER @PYTHON_INTERPRETER@) set (TRIQS_PYTHON_INTERPRETER @PYTHON_INTERPRETER@)
# Fix the rpath # Fix the rpath
set(CMAKE_INSTALL_RPATH "@CMAKE_INSTALL_PREFIX@/lib") #set(CMAKE_INSTALL_RPATH "@CMAKE_INSTALL_PREFIX@/lib")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) #set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) #set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
message(STATUS "TRIQS : Adding C++11 compilation flags -std=c++11 ") message(STATUS "TRIQS : Adding C++11 compilation flags -std=c++11 ")
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x ") set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x ")
@ -114,6 +114,9 @@ else()
endif() endif()
endmacro() endmacro()
macro (triqs_add_rpath_to_triqs_install)
link_libraries ( -Wl,-rpath,@CMAKE_INSTALL_PREFIX@/lib)
endmacro()
# #
# This macro builds the f2py module # This macro builds the f2py module