]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Bugfix: Only run "make sign" if it is necessary
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 19 Nov 2013 21:43:56 +0000 (21:43 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 19 Nov 2013 21:43:56 +0000 (21:43 +0000)
git-svn-id: https://svn.dealii.org/trunk@31718 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/macros/macro_deal_ii_invoke_autopilot.cmake

index eb63de08d190bf6d42e90a78034407b1a7248685..46a05912e032c90b1ea93d065178c77c9c9017c8 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.