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>
이 커밋은 다음에 포함됨:
1 부모
81e3a78b1f
커밋
32806681ca
6 파일이 변경됨
+13
검색과 일치하는 파일 없음
@@ -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)
|
||||
|
||||
새 이슈에서 참조
사용자 차단