11# As of February 2025 we require CMake 3.22.0
22cmake_minimum_required (VERSION 3.22.0 FATAL_ERROR )
33
4- # Suppress 'FindBoost module is removed' warning. Will use BoostConfig.cmake instead
5- if (POLICY CMP0167)
6- cmake_policy (SET CMP0167 NEW )
7- endif ()
84
9- # As of cMake 3.31 add_custom_command() rejects invalid arguments
10- if (POLICY CMP0175)
11- cmake_policy (SET CMP0175 NEW )
5+ # As of cMake 3.27, find_package() will look for both case-sensitive and all-uppercase versions
6+ # of the package. This seems to affect FLANN as included by Pixi
7+ if (POLICY CMP0144)
8+ cmake_policy (SET CMP0144 NEW )
129endif ()
1310
1411# FindPythonInterp and FindPythonLibs modules are deprecated, but are still in use by
@@ -18,18 +15,28 @@ if(POLICY CMP0148)
1815 cmake_policy (SET CMP0148 OLD )
1916endif ()
2017
21- # As of cMake 3.27, find_package() will look for both case-sensitive and all-uppercase versions
22- # of the package. This seems to affect FLANN as included by Pixi
23- if (POLICY CMP0144)
24- cmake_policy (SET CMP0144 NEW )
25- endif ()
26-
2718# The exec_program command was deprecated in cMake 3.0, and policy CMP0153 was added in cMake
2819# 3.28 to control whether this gives a warning (the OLD behavior) or a fatal error (NEW)
2920if (POLICY CMP0153)
3021 cmake_policy (SET CMP0153 NEW )
3122endif ()
3223
24+ # Suppress 'FindBoost module is removed' warning. Will use BoostConfig.cmake instead
25+ if (POLICY CMP0167)
26+ cmake_policy (SET CMP0167 NEW )
27+ endif ()
28+
29+ # As of cMake 3.31 add_custom_command() rejects invalid arguments
30+ if (POLICY CMP0175)
31+ cmake_policy (SET CMP0175 NEW )
32+ endif ()
33+
34+ # Added in cMake 3.31, enforce normalization of all DESTINATION paths given to install()
35+ if (POLICY CMP0177)
36+ cmake_policy (SET CMP0177 NEW )
37+ endif ()
38+
39+
3340option (FREECAD_USE_CCACHE "Auto detect and use ccache during compilation" ON )
3441
3542if (FREECAD_USE_CCACHE)
0 commit comments