From 8e3f19722e8818b57150e6f618df6ad2b55426aa Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Wed, 3 Aug 2022 17:10:50 +0200 Subject: [PATCH] cmake: Fix unwanted public header installation on macOS --- cmake/Modules/ObsHelpers_macOS.cmake | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cmake/Modules/ObsHelpers_macOS.cmake b/cmake/Modules/ObsHelpers_macOS.cmake index b116a0723..f279ef604 100644 --- a/cmake/Modules/ObsHelpers_macOS.cmake +++ b/cmake/Modules/ObsHelpers_macOS.cmake @@ -50,12 +50,13 @@ function(setup_framework_target target) install( TARGETS ${target} EXPORT "${target}Targets" - FRAMEWORK DESTINATION "Frameworks" COMPONENT obs_libraries - INCLUDES - DESTINATION Frameworks/$.framework/Headers + FRAMEWORK DESTINATION "Frameworks" + COMPONENT obs_libraries + EXCLUDE_FROM_ALL PUBLIC_HEADER DESTINATION Frameworks/$.framework/Headers + COMPONENT obs_libraries EXCLUDE_FROM_ALL) endfunction() @@ -252,8 +253,10 @@ function(setup_obs_frameworks target) FRAMEWORK DESTINATION "$.app/Contents/Frameworks/" COMPONENT obs_frameworks - PUBLIC_HEADER DESTINATION "${OBS_INCLUDE_DESTINATION}" - COMPONENT obs_libraries) + PUBLIC_HEADER + DESTINATION "${OBS_INCLUDE_DESTINATION}" + COMPONENT obs_libraries + EXCLUDE_FROM_ALL) endfunction() # Helper function to set-up OBS plugins and helper binaries for macOS bundling