]> https://gitweb.dealii.org/ - dealii.git/commitdiff
examples: ignore temporary cc files in cmake 8181/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 15 May 2019 16:05:30 +0000 (10:05 -0600)
committerTimo Heister <timo.heister@gmail.com>
Wed, 15 May 2019 16:05:30 +0000 (10:05 -0600)
I had an editor leave a temporary cc file in the example directory. This
caused cmake/make to fail in hilarious ways. To try it yourself:
``touch examples/step-63/a#.cc``

By reducing the glob to files that are of the form "step-*.cc", we
should be able to avoid this problem. In my case the file was
".#step-63.cc".

examples/CMakeLists.txt

index 7ea0ea5b3c0cc171165a81274c17f54f5a8c2662..ac9b9a11d50947f75af6c8b03dd830f0a0d914ec 100644 (file)
@@ -53,8 +53,8 @@ IF(DEAL_II_COMPONENT_EXAMPLES)
     # Set up all executables:
     #
     FILE(GLOB _steps 
-      ${CMAKE_CURRENT_SOURCE_DIR}/step-*/*.cc
-      ${CMAKE_CURRENT_SOURCE_DIR}/step-*/*.cu)
+      ${CMAKE_CURRENT_SOURCE_DIR}/step-*/step-*.cc
+      ${CMAKE_CURRENT_SOURCE_DIR}/step-*/step-*.cu)
     FOREACH(_step ${_steps})
       GET_FILENAME_COMPONENT(_name ${_step} NAME_WE)
       GET_FILENAME_COMPONENT(_directory ${_step} DIRECTORY)

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.