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>
Dieser Commit ist enthalten in:
Galantsev, Dmitrii committed 2024-02-13 16:56:28 -06:00
1 Ursprung 81e3a78b1f
Commit 32806681ca
6 Dateien geändert
+13

Keine Dateien entsprechen Ihrer Suche

+2
Datei anzeigen
@@ -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)