From: Matthias Maier Date: Thu, 30 Mar 2017 16:40:57 +0000 (-0500) Subject: CMake: Bugfix: Ensure compatibility with cmake-2.8.8 X-Git-Tag: v8.5.0-rc2~12^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43f9c6b8c281aff25cb861950481ac071580fdf1;p=dealii.git CMake: Bugfix: Ensure compatibility with cmake-2.8.8 --- diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 442e70562f..412e462fb3 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -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.