]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Bugfix: Ensure compatibility with cmake-2.8.8
authorMatthias Maier <tamiko@43-1.org>
Thu, 30 Mar 2017 16:40:57 +0000 (11:40 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 30 Mar 2017 16:40:57 +0000 (11:40 -0500)
examples/CMakeLists.txt

index 442e70562f957fccb19cd521d064c3506e3e2215..412e462fb37f61a95dcb4ae1cd781eab97ee2d49 100644 (file)
@@ -53,7 +53,11 @@ IF(DEAL_II_COMPONENT_EXAMPLES)
     FILE(GLOB _steps ${CMAKE_CURRENT_SOURCE_DIR}/step-*/*.cc)
     FOREACH(_step ${_steps})
       GET_FILENAME_COMPONENT(_name ${_step} NAME_WE)
-      GET_FILENAME_COMPONENT(_directory ${_step} DIRECTORY)
+      #
+      # to ensure compatibility with 2.8.8 - 2.8.11 we use "PATH" instead
+      # of "DIRECTORY"
+      #
+      GET_FILENAME_COMPONENT(_directory ${_step} PATH)
 
       #
       # Extract dependency information from CMakeLists.txt file.

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.