From: Matthias Maier Date: Tue, 19 Nov 2013 21:43:56 +0000 (+0000) Subject: CMake: Bugfix: Only run "make sign" if it is necessary X-Git-Tag: v8.1.0~239 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d57d909cbfb74d8801653c90322b8f6f0ce691f9;p=dealii.git CMake: Bugfix: Only run "make sign" if it is necessary git-svn-id: https://svn.dealii.org/trunk@31718 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/macros/macro_deal_ii_invoke_autopilot.cmake b/deal.II/cmake/macros/macro_deal_ii_invoke_autopilot.cmake index eb63de08d1..46a05912e0 100644 --- a/deal.II/cmake/macros/macro_deal_ii_invoke_autopilot.cmake +++ b/deal.II/cmake/macros/macro_deal_ii_invoke_autopilot.cmake @@ -97,12 +97,16 @@ MACRO(DEAL_II_INVOKE_AUTOPILOT) IF(CMAKE_SYSTEM_NAME MATCHES "Darwin") IF(DEFINED OSX_CERTIFICATE_NAME) - ADD_CUSTOM_TARGET(sign ALL + ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_BINARY_DIR}/${TARGET}.signed COMMAND codesign -f -s ${OSX_CERTIFICATE_NAME} ${TARGET} + COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_BINARY_DIR}/${TARGET}.signed COMMENT "Digitally signing ${TARGET}" DEPENDS ${TARGET} VERBATIM ) + ADD_CUSTOM_TARGET(sign ALL + DEPENDS ${CMAKE_BINARY_DIR}/${TARGET}.signed + ) ADD_DEPENDENCIES(run sign) ELSE() ADD_CUSTOM_TARGET(sign