|
From: <kin...@us...> - 2025-09-05 06:47:42
|
Revision: 7361
http://sourceforge.net/p/teem/code/7361
Author: kindlmann
Date: 2025-09-05 06:47:40 +0000 (Fri, 05 Sep 2025)
Log Message:
-----------
here too we need some RPATH tricks
Modified Paths:
--------------
teem/trunk/UseTeemCMakeDemo/CMakeLists-v2.txt
Modified: teem/trunk/UseTeemCMakeDemo/CMakeLists-v2.txt
===================================================================
--- teem/trunk/UseTeemCMakeDemo/CMakeLists-v2.txt 2025-09-05 06:47:12 UTC (rev 7360)
+++ teem/trunk/UseTeemCMakeDemo/CMakeLists-v2.txt 2025-09-05 06:47:40 UTC (rev 7361)
@@ -18,6 +18,13 @@
# transitive dependencies automatically
target_link_libraries(testio PRIVATE Teem::Teem)
+# Give the installed binary an LC_RPATH that points at the actual libteem location
+set_target_properties(testio PROPERTIES
+ INSTALL_RPATH "$<TARGET_FILE_DIR:Teem::Teem>"
+ # Optional but nice for running from the build tree on non-Apple platforms too:
+ BUILD_RPATH "$<TARGET_FILE_DIR:Teem::Teem>"
+)
+
# Install the testio binary into ${CMAKE_INSTALL_PREFIX}/bin
install(TARGETS testio
RUNTIME DESTINATION bin # for executables on all platforms
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|