File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,8 @@ function(export_target target)
234
234
COMPONENT obs_libraries
235
235
EXCLUDE_FROM_ALL )
236
236
237
- if (MSVC )
237
+ get_target_property (target_type ${target} TYPE )
238
+ if (MSVC AND NOT target_type STREQUAL INTERFACE_LIBRARY )
238
239
install (
239
240
FILES $< TARGET_PDB_FILE:${target} >
240
241
CONFIGURATIONS "RelWithDebInfo" "Debug"
Original file line number Diff line number Diff line change @@ -274,12 +274,15 @@ function(target_export target)
274
274
set (exclude_variant EXCLUDE_FROM_ALL )
275
275
_target_export (${target} )
276
276
277
- install (
278
- FILES "$<TARGET_PDB_FILE:${target} >"
279
- CONFIGURATIONS RelWithDebInfo Debug Release
280
- DESTINATION "${OBS_EXECUTABLE_DESTINATION} "
281
- COMPONENT Development
282
- OPTIONAL )
277
+ get_target_property (target_type ${target} TYPE )
278
+ if (NOT target_type STREQUAL INTERFACE_LIBRARY )
279
+ install (
280
+ FILES "$<TARGET_PDB_FILE:${target} >"
281
+ CONFIGURATIONS RelWithDebInfo Debug Release
282
+ DESTINATION "${OBS_EXECUTABLE_DESTINATION} "
283
+ COMPONENT Development
284
+ OPTIONAL )
285
+ endif ()
283
286
endfunction ()
284
287
285
288
# Helper function to add resources into bundle
You can’t perform that action at this time.
0 commit comments