From: Matthias Maier Date: Mon, 30 Jun 2025 19:43:18 +0000 (-0500) Subject: CMake: set policy CMP0177, which normalizes DESTINATION paths X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F18606%2Fhead;p=dealii.git CMake: set policy CMP0177, which normalizes DESTINATION paths --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 56564060cf..1e74325b68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,6 +58,12 @@ if(POLICY CMP0167) cmake_policy(SET CMP0167 NEW) endif() +if(POLICY CMP0177) + # Introduced in CMAKE 3:31: Normalize DESTINATION paths so that they do + # not contain "." or "..". + cmake_policy(SET CMP0177 NEW) +endif() + list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/) #