From f38585ec939d576d4a1698cc6ab0646620c05c2f Mon Sep 17 00:00:00 2001 From: seidelt Date: Wed, 27 Sep 2023 22:29:26 +0200 Subject: [PATCH] Fixed code signing issues on macOS --- Libs/C++/Source/CDPL/Vis/CodeSignLibCDPLVisQt.cmake.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Libs/C++/Source/CDPL/Vis/CodeSignLibCDPLVisQt.cmake.in b/Libs/C++/Source/CDPL/Vis/CodeSignLibCDPLVisQt.cmake.in index 2b13a12a3..6b26e5bec 100644 --- a/Libs/C++/Source/CDPL/Vis/CodeSignLibCDPLVisQt.cmake.in +++ b/Libs/C++/Source/CDPL/Vis/CodeSignLibCDPLVisQt.cmake.in @@ -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()