This repository was archived by the owner on Sep 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,27 @@ set(SCAP_WORKBENCH_LINK_LIBRARIES
125
125
Qt5::Widgets Qt5::XmlPatterns
126
126
${OPENSCAP_LIBRARIES} )
127
127
128
+ # ---------- RPATHS for linking
129
+
130
+ # see https://cmake.org/Wiki/CMake_RPATH_handling
131
+
132
+ # use, i.e. don't skip the full RPATH for the build tree
133
+ set (CMAKE_SKIP_BUILD_RPATH FALSE )
134
+
135
+ # when building, don't use the install RPATH already
136
+ # (but later on when installing)
137
+ set (CMAKE_BUILD_WITH_INSTALL_RPATH ON )
138
+
139
+ set (CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR} )
140
+
141
+ # add the automatically determined parts of the RPATH
142
+ # which point to directories outside the build tree to the install RPATH
143
+ set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE )
144
+
145
+ # Turn on RPATH for OSX for policy warning
146
+ set (CMAKE_MACOSX_RPATH ON )
147
+ # ---------- CONFIGURATION
148
+
128
149
configure_file ("include/Config.h.in" "${CMAKE_CURRENT_BINARY_DIR} /Config.h" )
129
150
# It is not trivial to make the resulting file executable :-(
130
151
# People will have to `bash runwrapper.sh ...` in the meantime.
You can’t perform that action at this time.
0 commit comments