mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
binpac: Install binaries with an RPATH
This commit is contained in:
parent
a4f05185d6
commit
3841c68d87
1 changed files with 8 additions and 0 deletions
|
@ -32,6 +32,14 @@ if ("${PROJECT_SOURCE_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
|
||||||
${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|
${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
# Keep RPATH upon installing so that user doesn't have to ensure the linker
|
||||||
|
# can find internal/private libraries or libraries external to the build
|
||||||
|
# directory that were explicitly linked against
|
||||||
|
if (NOT BINARY_PACKAGING_MODE)
|
||||||
|
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||||
|
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
|
||||||
|
endif ()
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
## Project/Build Configuration
|
## Project/Build Configuration
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue