We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc2fa8f commit 70ce28bCopy full SHA for 70ce28b
cmp_compressonatorlib/CMakeLists.txt
@@ -129,3 +129,12 @@ endif()
129
# TODO: More libraries should be linked like this when building so that we don't have to constantly repeat source file includes
130
# Not just for CMP_Compressonator, do the same for the Framework and all other libraries
131
target_link_libraries(CMP_Compressonator PUBLIC CMP_Core CMP_Framework)
132
+
133
+# Set RPATH so the library can find its dependencies at runtime
134
+# // https://duerrenberger.dev/blog/2021/08/04/understanding-rpath-with-cmake/
135
+if(UNIX)
136
+ set_target_properties(CMP_Compressonator PROPERTIES
137
+ INSTALL_RPATH "$ORIGIN"
138
+ BUILD_WITH_INSTALL_RPATH TRUE
139
+ )
140
+endif()
0 commit comments