mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-07 06:33:05 -06:00
16 lines
492 B
CMake
16 lines
492 B
CMake
if (CMAKE_COMPILER_IS_GNUCC)
|
|
option (USE_RUNPATH "Embed original dependency paths in installed library" ON)
|
|
if (USE_RUNPATH)
|
|
set (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
|
|
set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
|
endif (USE_RUNPATH)
|
|
else()
|
|
set(USE_RUNPATH OFF)
|
|
endif()
|
|
|
|
|
|
macro( add_runpath target )
|
|
if(NOT ERT_MAC)
|
|
set_target_properties( ${target} PROPERTIES LINK_FLAGS -Wl,--enable-new-dtags)
|
|
endif()
|
|
endmacro() |