From 996422c014a28d332088b2c4a7b57d55fb4e045b Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Wed, 15 May 2019 10:05:30 -0600 Subject: [PATCH] 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". --- examples/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.5