mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
6349e94a0a
In ce8be2385b5fee16859a630fca0c98ad290c8e21 ("cmake: set rpath for libraries on linux") RPATH was first instroduced. Later in 6d09efe8686de824adf3d8810bbe0d5c386643e4 ("Set RPATH only if installation is done into non system directory") it was set only if it was installed to non system directory. But absolute RPATH not a good default, let's change this. Fixes: #920
8 lines
267 B
CMake
8 lines
267 B
CMake
# Disable RPATH for install tree by default.
|
|
#
|
|
# PreLoad is used to change the default, since CMakeLists.txt will already have
|
|
# the default, and it will NO.
|
|
if (NOT DEFINED CMAKE_SKIP_INSTALL_RPATH)
|
|
set(CMAKE_SKIP_INSTALL_RPATH ON CACHE STRING "" FORCE)
|
|
endif()
|