diff --git a/cmake/Modules/ObsHelpers_Windows.cmake b/cmake/Modules/ObsHelpers_Windows.cmake index 71ac4deb3..b85751410 100644 --- a/cmake/Modules/ObsHelpers_Windows.cmake +++ b/cmake/Modules/ObsHelpers_Windows.cmake @@ -234,7 +234,8 @@ function(export_target target) COMPONENT obs_libraries EXCLUDE_FROM_ALL) - if(MSVC) + get_target_property(target_type ${target} TYPE) + if(MSVC AND NOT target_type STREQUAL INTERFACE_LIBRARY) install( FILES $ CONFIGURATIONS "RelWithDebInfo" "Debug" diff --git a/cmake/windows/helpers.cmake b/cmake/windows/helpers.cmake index 9472930d8..a62576b1d 100644 --- a/cmake/windows/helpers.cmake +++ b/cmake/windows/helpers.cmake @@ -274,12 +274,15 @@ function(target_export target) set(exclude_variant EXCLUDE_FROM_ALL) _target_export(${target}) - install( - FILES "$" - CONFIGURATIONS RelWithDebInfo Debug Release - DESTINATION "${OBS_EXECUTABLE_DESTINATION}" - COMPONENT Development - OPTIONAL) + get_target_property(target_type ${target} TYPE) + if(NOT target_type STREQUAL INTERFACE_LIBRARY) + install( + FILES "$" + CONFIGURATIONS RelWithDebInfo Debug Release + DESTINATION "${OBS_EXECUTABLE_DESTINATION}" + COMPONENT Development + OPTIONAL) + endif() endfunction() # Helper function to add resources into bundle