SWDEV-444700 - CMAKE - Fix RUNPATH
These RUNPATH changes make it so libraries can be found without setting LD_LIBRARY_PATH. Mostly tested on installed RDC binaries and libraries. The build binaries should also work. Change-Id: Ifd908a5b61d24dfcbb1d08d21b4ee830156d8643 Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
Este commit está contenido en:
1 padre
81e3a78b1f
commit
32806681ca
6 files changed
+13
No files matched your search
@@ -40,6 +40,8 @@ set_property(TARGET ${BOOTSTRAP_LIB} PROPERTY
|
||||
SOVERSION "${VERSION_MAJOR}")
|
||||
set_property(TARGET ${BOOTSTRAP_LIB} PROPERTY
|
||||
VERSION "${SO_VERSION_STRING}")
|
||||
set_target_properties(${BOOTSTRAP_LIB}
|
||||
PROPERTIES INSTALL_RPATH "\$ORIGIN:\$ORIGIN/rdc")
|
||||
|
||||
# If the library is a release, strip the target library
|
||||
if("${CMAKE_BUILD_TYPE}" STREQUAL Release)
|
||||
|
||||
Reference in new issue
Block a user