File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ function(add_lldb_executable name)
142
142
cmake_parse_arguments (ARG
143
143
"GENERATE_INSTALL"
144
144
"INSTALL_PREFIX;ENTITLEMENTS"
145
- "LINK_LIBS;LINK_COMPONENTS"
145
+ "LINK_LIBS;LINK_COMPONENTS;BUILD_RPATH;INSTALL_RPATH "
146
146
${ARGN}
147
147
)
148
148
@@ -164,13 +164,26 @@ function(add_lldb_executable name)
164
164
target_link_libraries (${name} PRIVATE ${ARG_LINK_LIBS} )
165
165
set_target_properties (${name} PROPERTIES FOLDER "lldb executables" )
166
166
167
+ if (ARG_BUILD_RPATH )
168
+ set_target_properties (${name} PROPERTIES BUILD_RPATH "${ARG_BUILD_RPATH} " )
169
+ endif ()
170
+
171
+ if (ARG_INSTALL_RPATH )
172
+ set_target_properties (${name} PROPERTIES
173
+ BUILD_WITH_INSTALL_RPATH OFF
174
+ INSTALL_RPATH "${ARG_INSTALL_RPATH} " )
175
+ endif ()
176
+
167
177
if (ARG_GENERATE_INSTALL )
168
178
set (install_dest bin )
169
179
if (ARG_INSTALL_PREFIX )
170
180
set (install_dest ${ARG_INSTALL_PREFIX} )
171
181
endif ()
172
182
install (TARGETS ${name} COMPONENT ${name}
173
- RUNTIME DESTINATION ${install_dest} )
183
+ RUNTIME DESTINATION ${install_dest}
184
+ LIBRARY DESTINATION ${install_dest}
185
+ BUNDLE DESTINATION ${install_dest}
186
+ FRAMEWORK DESTINATION ${install_dest} )
174
187
if (NOT CMAKE_CONFIGURATION_TYPES )
175
188
add_llvm_install_targets (install -${name}
176
189
DEPENDS ${name}
You can’t perform that action at this time.
0 commit comments