]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
make old policy conditional on configuration
authorgg <chown_tee@proton.me>
Tue, 13 Jan 2026 21:19:47 +0000 (16:19 -0500)
committergg <chown_tee@proton.me>
Tue, 13 Jan 2026 21:19:47 +0000 (16:19 -0500)
CMakeLists.txt

index 1d0a960d5fb72934b9e44fa11472f0a5ac03303d..617a719624f4669cd306528ba28c80e969f2b3c4 100644 (file)
@@ -49,7 +49,9 @@ set(COPYRIGHT_YEAR "2025")
 set(COPYRIGHT_HOLDERS "The Monero Project")
 
 cmake_policy(SET CMP0074 NEW)
-cmake_policy(SET CMP0148 OLD)
+if(POLICY CMP0148)
+    cmake_policy(SET CMP0148 OLD)
+endif()
 
 # Configurable options
 option(STATIC "Link libraries statically, requires static Qt" OFF)