Skip to content

Commit

Permalink
Fixed code signing issues on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
seidelt committed Sep 27, 2023
1 parent ed0a6f8 commit f38585e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Libs/C++/Source/CDPL/Vis/CodeSignLibCDPLVisQt.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
SET(BINARY_FILE "${CMAKE_INSTALL_PREFIX}/@CDPKIT_LIBRARY_INSTALL_DIR@/libcdpl-vis-qt.dylib...")

MESSAGE(" -- Signing ${BINARY_FILE}")

IF("@CDPKIT_CODE_SIGNING_IDENTITY@" STREQUAL "-")
EXECUTE_PROCESS(COMMAND "@CODESIGN_EXECUTABLE@" "--force" "--timestamp" "--preserve-metadata=entitlements,requirements,flags" "--sign" "-" "libcdpl-vis-qt.dylib"
EXECUTE_PROCESS(COMMAND "@CODESIGN_EXECUTABLE@" "--force" "--timestamp" "--preserve-metadata=entitlements,requirements,flags" "--sign" "-" "${BINARY_FILE}"
OUTPUT_VARIABLE STDOUT ERROR_VARIABLE STDERR)
ELSE()
EXECUTE_PROCESS(COMMAND "@CODESIGN_EXECUTABLE@" "--force" "--timestamp" "--preserve-metadata=entitlements,requirements,flags" "--options" "runtime" "--sign" "@CDPKIT_CODE_SIGNING_IDENTITY@" "libcdpl-vis-qt.dylib"
EXECUTE_PROCESS(COMMAND "@CODESIGN_EXECUTABLE@" "--force" "--timestamp" "--preserve-metadata=entitlements,requirements,flags" "--options" "runtime" "--sign" "@CDPKIT_CODE_SIGNING_IDENTITY@" "${BINARY_FILE}"
OUTPUT_VARIABLE STDOUT ERROR_VARIABLE STDERR)
ENDIF()

0 comments on commit f38585e

Please sign in to comment.