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()