From e54dce5dcf6d1f8715950feeef56a6fd79baa09f Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 11 Aug 2025 17:33:06 +0500 Subject: [PATCH] ifcwrap cmake - set CMP0177 to new To fix 1k warnings running in cmake 3.30+ The new policy is that cmake is normalizing destination paths in `install` and warns if normalization has any effect on them. In our case paths after normalization should be fine, so switching it to `NEW`. --- src/ifcwrap/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ifcwrap/CMakeLists.txt b/src/ifcwrap/CMakeLists.txt index 187f0f958d..3ab27a4e2e 100644 --- a/src/ifcwrap/CMakeLists.txt +++ b/src/ifcwrap/CMakeLists.txt @@ -17,6 +17,8 @@ # # ################################################################################ +cmake_policy(SET CMP0177 NEW) + FIND_PACKAGE(SWIG) IF(NOT SWIG_FOUND) MESSAGE(FATAL_ERROR "BUILD_IFCPYTHON enabled, but unable to find SWIG. Disable BUILD_IFCPYTHON or fix SWIG paths to proceed.")