File fix_CMP0046.patch of Package codes_ui
Starting with cmake4, we get the following error message:
[ 20s] CMake Error at CMakeLists.txt:60 (cmake_policy):
[ 20s] Policy CMP0046 may not be set to OLD behavior because this version of CMake
[ 20s] no longer supports it. The policy was introduced in CMake version 3.0.0,
[ 20s] and use of NEW behavior is now required.
[ 20s]
[ 20s] Please either update your CMakeLists.txt files to conform to the new
[ 20s] behavior or use an older version of CMake that still supports the old
[ 20s] behavior. Run cmake --help-policy CMP0046 for more information.
This policy setting seems not to be necessary, so simply deactivate it.
--- codes_ui-1.8.1-Source/CMakeLists.txt.orig 2025-12-05 10:45:58.335843430 +0100
+++ codes_ui-1.8.1-Source/CMakeLists.txt 2025-12-05 10:47:12.300232255 +0100
@@ -50,9 +50,9 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.
endif()
# ensure we can add non-existent dependencies - required for generating icon files
-if( ${CMAKE_VERSION} VERSION_GREATER "2.9.9" )
- cmake_policy(SET CMP0046 OLD)
-endif()
+##if( ${CMAKE_VERSION} VERSION_GREATER "2.9.9" )
+## cmake_policy(SET CMP0046 OLD)
+##endif()
# default startup script name