cmake: Fix unwanted public header installation on macOS

master
PatTheMav 2022-08-03 17:10:50 +02:00 committed by Patrick Heyer
parent c6ea39534f
commit 8e3f19722e
1 changed files with 8 additions and 5 deletions

View File

@ -50,12 +50,13 @@ function(setup_framework_target target)
install( install(
TARGETS ${target} TARGETS ${target}
EXPORT "${target}Targets" EXPORT "${target}Targets"
FRAMEWORK DESTINATION "Frameworks" COMPONENT obs_libraries FRAMEWORK DESTINATION "Frameworks"
INCLUDES COMPONENT obs_libraries
DESTINATION Frameworks/$<TARGET_FILE_BASE_NAME:${target}>.framework/Headers EXCLUDE_FROM_ALL
PUBLIC_HEADER PUBLIC_HEADER
DESTINATION DESTINATION
Frameworks/$<TARGET_FILE_BASE_NAME:${target}>.framework/Headers Frameworks/$<TARGET_FILE_BASE_NAME:${target}>.framework/Headers
COMPONENT obs_libraries
EXCLUDE_FROM_ALL) EXCLUDE_FROM_ALL)
endfunction() endfunction()
@ -252,8 +253,10 @@ function(setup_obs_frameworks target)
FRAMEWORK FRAMEWORK
DESTINATION "$<TARGET_FILE_BASE_NAME:${target}>.app/Contents/Frameworks/" DESTINATION "$<TARGET_FILE_BASE_NAME:${target}>.app/Contents/Frameworks/"
COMPONENT obs_frameworks COMPONENT obs_frameworks
PUBLIC_HEADER DESTINATION "${OBS_INCLUDE_DESTINATION}" PUBLIC_HEADER
COMPONENT obs_libraries) DESTINATION "${OBS_INCLUDE_DESTINATION}"
COMPONENT obs_libraries
EXCLUDE_FROM_ALL)
endfunction() endfunction()
# Helper function to set-up OBS plugins and helper binaries for macOS bundling # Helper function to set-up OBS plugins and helper binaries for macOS bundling