Skip to content

Commit

Permalink
cmake(macOS): Add CMAKE_XCODE_ATTRIBUTE_OTHER_CODE_SIGN_FLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
norihiro committed Aug 20, 2022
1 parent 6dbe02a commit 076efa8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/ObsPluginHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ if(OS_MACOS)
set(OBS_CODESIGN_LINKER ON
CACHE BOOL "Enable linker code-signing on macOS (macOS 11+ required)")

if(OBS_CODESIGN_LINKER)
set(CMAKE_XCODE_ATTRIBUTE_OTHER_CODE_SIGN_FLAGS "-o linker-signed")
endif()

if(XCODE)
# Tell Xcode to pretend the linker signed binaries so that editing with
# install_name_tool preserves ad-hoc signatures. This option is supported by
Expand Down

0 comments on commit 076efa8

Please sign in to comment.