forked from osmocom/wireshark
CMake: Remove unnecessary check for CMAKE_INSTALL_RPATH
CMAKE_INSTALL_RPATH is set inside the if() block and not before. Change-Id: Id8a863ca9bf5fed367de3fa7681a9a269d3f4f07 Reviewed-on: https://code.wireshark.org/review/31646 Reviewed-by: João Valverde <j@v6e.pt> Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
965248dcfb
commit
a37388fbb6
|
@ -181,7 +181,7 @@ include(GNUInstallDirs)
|
|||
# Make sure our executables can can load our libraries if we install into
|
||||
# a non-default directory on Unix-like systems other than macOS.
|
||||
# https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/RPATH-handling
|
||||
if(NOT CMAKE_INSTALL_RPATH AND NOT (WIN32 OR APPLE))
|
||||
if(NOT (WIN32 OR APPLE))
|
||||
# Try to set a RPATH for installed binaries if the library directory is
|
||||
# not already included in the default search list.
|
||||
list(FIND CMAKE_C_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_FULL_LIBDIR}" IS_SYSTEM_DIR)
|
||||
|
|
Loading…
Reference in New Issue