From: maier Date: Fri, 11 Jan 2013 09:07:29 +0000 (+0000) Subject: Rename "strip-comments" to "strip_comments" to make it consistent with "edit_cache" X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa67b11d343945ae19f8dc54195f708767d18de1;p=dealii-svn.git Rename "strip-comments" to "strip_comments" to make it consistent with "edit_cache" git-svn-id: https://svn.dealii.org/branches/branch_cmake@28017 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 00cf0f743d..19cbb7e0be 100644 --- a/deal.II/cmake/macros/macro_deal_ii_invoke_autopilot.cmake +++ b/deal.II/cmake/macros/macro_deal_ii_invoke_autopilot.cmake @@ -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! # ###"