Skip to content

Commit

Permalink
moved RPATH stuff from install_prefix.cmake to build_rules.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickfrey committed Oct 13, 2017
1 parent 9defce4 commit c96fc0c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 11 additions & 0 deletions cmake/build_rules.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,14 @@ foreach(flag ${CXX11_FEATURE_LIST})
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D${flag} -pthread" )
endforeach()

if(APPLE)
set( CMAKE_MACOSX_RPATH ON)
set( CMAKE_BUILD_WITH_INSTALL_RPATH FALSE )
set( CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}/strus" )
set( CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE )
else(APPLE)
set( CMAKE_BUILD_WITH_INSTALL_RPATH FALSE )
set( CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}/strus" )
set( CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE )
set( CMAKE_NO_BUILTIN_CHRPATH TRUE )
endif(APPLE)
11 changes: 0 additions & 11 deletions cmake/install_prefix.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,3 @@ else(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set( LIB_INSTALL_DIR lib )
endif(NOT LIB_INSTALL_DIR)
endif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
if(APPLE)
set(CMAKE_MACOSX_RPATH ON)
set( CMAKE_BUILD_WITH_INSTALL_RPATH FALSE )
set( CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}/strus" )
set( CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE )
else(APPLE)
set( CMAKE_BUILD_WITH_INSTALL_RPATH FALSE )
set( CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}/strus" )
set( CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE )
set( CMAKE_NO_BUILTIN_CHRPATH TRUE )
endif(APPLE)

0 comments on commit c96fc0c

Please sign in to comment.