Description: Fix build failure with CMake 4.x
 CMP0059 OLD behavior is no longer supported by CMake >= 4.0 and setting it
 aborts the configuration with an error.  Set the policy to NEW instead,
 which matches the default behavior since CMake 3.3 and is required by
 current CMake versions.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: other
Forwarded: not-needed
Last-Update: 2026-09-02

--- kexi-3.2.0.orig/cmake/modules/SetKexiCMakePolicies.cmake
+++ kexi-3.2.0/cmake/modules/SetKexiCMakePolicies.cmake
@@ -9,7 +9,7 @@ cmake_policy(SET CMP0053 NEW) # TODO rem
                               # "Simplify variable reference and escape sequence evaluation"
 
 if(POLICY CMP0059) # Don’t treat DEFINITIONS as a built-in directory property.
-    cmake_policy(SET CMP0059 OLD)
+    cmake_policy(SET CMP0059 NEW)
 endif()
 if(POLICY CMP0063) # Honor visibility properties for all target types (since cmake 3.3)
     cmake_policy(SET CMP0063 NEW)
