Skip to content

Commit 07dd32a

Browse files
PatTheMavRytoEX
authored andcommitted
obs-ffmpeg: Disable hardened runtime when using ad-hoc signing
1 parent 0aaf2e5 commit 07dd32a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cmake/macos/helpers.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,14 @@ function(set_target_properties_obs target)
210210
elseif(${target} STREQUAL mac-camera-extension)
211211
set_target_properties(${target} PROPERTIES BUILD_WITH_INSTALL_RPATH TRUE)
212212
set_property(GLOBAL APPEND PROPERTY _OBS_DEPENDENCIES ${target})
213+
elseif(${target} STREQUAL obs-ffmpeg-mux)
214+
if(OBS_CODESIGN_IDENTITY STREQUAL "-")
215+
set_target_xcode_properties(${target} PROPERTIES ENABLE_HARDENED_RUNTIME NO)
216+
endif()
217+
218+
set_target_xcode_properties(${target} PROPERTIES SKIP_INSTALL NO)
219+
set_property(GLOBAL APPEND PROPERTY _OBS_EXECUTABLES ${target})
220+
set_property(GLOBAL APPEND PROPERTY _OBS_DEPENDENCIES ${target})
213221
else()
214222
set_property(TARGET ${target} PROPERTY XCODE_ATTRIBUTE_SKIP_INSTALL NO)
215223
set_property(GLOBAL APPEND PROPERTY _OBS_EXECUTABLES ${target})

0 commit comments

Comments
 (0)