From: Timo Heister Date: Wed, 15 May 2019 16:05:30 +0000 (-0600) Subject: examples: ignore temporary cc files in cmake X-Git-Tag: v9.2.0-rc1~1492^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=996422c014a28d332088b2c4a7b57d55fb4e045b;p=dealii.git examples: ignore temporary cc files in cmake 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". --- diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 7ea0ea5b3c..ac9b9a11d5 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -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)