]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Rename "strip-comments" to "strip_comments" to make it consistent with "edit_cache"
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 11 Jan 2013 09:07:29 +0000 (09:07 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 11 Jan 2013 09:07:29 +0000 (09:07 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@28017 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/macros/macro_deal_ii_invoke_autopilot.cmake

index 00cf0f743dedbacae616691f8518983f3cbba141..19cbb7e0be17083ad5d611c2faf4d32f293b45b1 100644 (file)
@@ -87,10 +87,13 @@ MACRO(DEAL_II_INVOKE_AUTOPILOT)
       )
 
     # Define a strip-comments target:
-    ADD_CUSTOM_TARGET(strip-comments
-      COMMAND perl -pi -e 's\#^[ \\t]*//.*\\n\#\#g;' ${TARGET_SRC}
-      COMMENT "strip comments"
-      )
+    FIND_PACKAGE(Perl QUIET)
+    IF(PERL_FOUND)
+      ADD_CUSTOM_TARGET(strip_comments
+        COMMAND ${PERL_EXECUTABLE} -pi -e 's\#^[ \\t]*//.*\\n\#\#g;' ${TARGET_SRC}
+        COMMENT "strip comments"
+        )
+    ENDIF()
 
     # Print out some usage information:
     MESSAGE(
@@ -108,10 +111,11 @@ MACRO(DEAL_II_INVOKE_AUTOPILOT)
 #
 #      $ make debug          - to switch the build type to \"Debug\"
 #      $ make release        - to switch the build type to \"Release\"
+#      $ make edit_cache     - to change (cached) configuration variables
+#                              and rerun the configure and generate phases of CMake
 #
-#      $ make strip-comments - strip the source files in this
+#      $ make strip_comments - strip the source files in this
 #                              directory off the documentation comments
-#
 #      $ make clean          - to remove the generated executable as well as
 #                              all intermediate compilation files
 #      $ make runclean       - to remove all output generated by the program
@@ -119,9 +123,6 @@ MACRO(DEAL_II_INVOKE_AUTOPILOT)
 #                              files (includes clean, runclean and the removal
 #                              of the generated build system)
 #
-#      $ make edit_cache     - to change (cached) configuration variables
-#                              and rerun the configure and generate phases of CMake
-#
 #  Have a nice day!
 #
 ###"

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.