From 7c2603a78872ddcf62b1d3ba8268d0d5d74913c6 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 27 Sep 2025 10:27:05 +0100 Subject: [PATCH] Set CMP0177 directly rather than by version --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 95403e5f..8ff995cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,10 @@ cmake_minimum_required(VERSION 3.25) -cmake_policy(VERSION 3.31) + +if(POLICY CMP0177) + # Policy CMP0177: install() DESTINATION paths are normalized + # Introduced in CMake 3.31 + cmake_policy(SET CMP0177 NEW) +endif() list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) include(identity)