From 43f9c6b8c281aff25cb861950481ac071580fdf1 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 30 Mar 2017 11:40:57 -0500 Subject: [PATCH] CMake: Bugfix: Ensure compatibility with cmake-2.8.8 --- examples/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. -- 2.39.5