Browse Source

cmake: Disable Framework code signing at build time

Frameworks should be archived and exported (where they will be
codesigned by Xcode) or shipped within an App bundle where Xcode will
also take care of it.
PatTheMav 2 years ago
parent
commit
c7ec604df1
1 changed files with 5 additions and 3 deletions
  1. 5 3
      cmake/macos/helpers.cmake

+ 5 - 3
cmake/macos/helpers.cmake

@@ -196,11 +196,13 @@ function(set_target_properties_obs target)
         PROPERTIES FRAMEWORK_VERSION A
                    MACOSX_FRAMEWORK_IDENTIFIER com.obsproject.${target}
                    MACOSX_FRAMEWORK_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/cmake/macos/Info.plist.in"
-                   XCODE_ATTRIBUTE_SKIP_INSTALL YES)
+                   XCODE_ATTRIBUTE_SKIP_INSTALL YES
+                   XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY ""
+                   XCODE_ATTRIBUTE_DEVELOPMENT_TEAM "")
+    else()
+      _add_entitlements()
     endif()
 
-    _add_entitlements()
-
     set_property(GLOBAL APPEND PROPERTY _OBS_FRAMEWORKS ${target})
     set_property(GLOBAL APPEND PROPERTY _OBS_DEPENDENCIES ${target})
   elseif(target_type STREQUAL MODULE_LIBRARY)