diff --git a/CMakeLists.txt b/CMakeLists.txt index 430ed14..58976dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,10 +74,10 @@ if( APPLE ) install( TARGETS ${PROGNAME} DESTINATION /Library/PreferencePanes ) if(SIGNCERT) - add_custom_target( TARGET ${PROGNAME} POST_BUILD + add_custom_command( TARGET ${PROGNAME} POST_BUILD COMMAND codesign -f --options=runtime -s "Developer ID Application: ${SIGNCERT}" $/Resources/id-updater-helper - $ + $ ) endif() add_custom_target( pkgbuild DEPENDS ${PROGNAME}