Force codesign to sign binaries, even if they are already signed (#2494)
For some reason, Apple binaries need to be signed, but sometimes are already signed. This triggers an error in codesign unless the force (-f) flag is passed.
This commit is contained in:
@@ -22,7 +22,7 @@ function(igl_add_tutorial name)
|
||||
# add_custom_command(TARGET your_target POST_BUILD COMMAND codesign -s - $<TARGET_FILE:your_target>
|
||||
if(APPLE)
|
||||
add_custom_command(TARGET ${name} POST_BUILD
|
||||
COMMAND codesign -s - $<TARGET_FILE:${name}>
|
||||
COMMAND codesign -f -s - $<TARGET_FILE:${name}>
|
||||
COMMENT "Codesigning ${name}"
|
||||
)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user