From 10f02856eaa7f04ffe156af955eff0703c3dc636 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 30 Jun 2025 14:43:18 -0500 Subject: [PATCH] CMake: set policy CMP0177, which normalizes DESTINATION paths --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) 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/) # -- 2.39.5