diff --git a/cmake/modules/DuneMacros.cmake b/cmake/modules/DuneMacros.cmake index 82479c80d316d7496f74609fc997a6494bfd2629..55165003668c70b13d3213fed443ce7e39b8aa79 100644 --- a/cmake/modules/DuneMacros.cmake +++ b/cmake/modules/DuneMacros.cmake @@ -310,6 +310,7 @@ macro(dune_project) else(_mod_cmake) message(STATUS "There are no tests for module ${DUNE_MOD_NAME}.") endif(_mod_cmake) + include(GNUInstallDirs) endmacro(dune_project MODULE_DIR) # create a new config.h file and overwrite the existing one diff --git a/cmake/scripts/FindFiles.cmake b/cmake/scripts/FindFiles.cmake index bb96760526a3cfdf4e776f5985194f371c12ce6d..662804060c831dfa25ea9e5e96d5505ffb81b8c8 100644 --- a/cmake/scripts/FindFiles.cmake +++ b/cmake/scripts/FindFiles.cmake @@ -1,3 +1,5 @@ +#Do not follow symlinks during FILE GLOB_RECURSE +cmake_policy(SET CMP0009 NEW) file(GLOB_RECURSE makefiles RELATIVE ${RELPATH} "CMakeLists.txt") foreach(_file ${makefiles}) string(REGEX MATCH ".*/test" _testdir ${_file})