diff --git a/graphics/cegui/files/patch-CMakeLists.txt b/graphics/cegui/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..fbfa6955ed0a --- /dev/null +++ b/graphics/cegui/files/patch-CMakeLists.txt @@ -0,0 +1,18 @@ +--- CMakeLists.txt.orig 2026-11-02 06:41:51 UTC ++++ CMakeLists.txt +@@ -1,14 +1,7 @@ + ################################################################################ + # Top-level CMakeLists.txt file for Crazy Eddie's GUI System + ################################################################################ +-cmake_minimum_required(VERSION 2.8.11) +-if (POLICY CMP0017) +- cmake_policy(SET CMP0017 OLD) +-endif() +- +-if (POLICY CMP0045) +- cmake_policy(SET CMP0045 OLD) +-endif() ++cmake_minimum_required(VERSION 3.5) + + if (APPLE AND NOT CMAKE_OSX_ARCHITECTURES) + set( CMAKE_OSX_ARCHITECTURES x86_64 CACHE STRING "Build architectures for Mac OS X") diff --git a/graphics/cegui/files/patch-cmake_CEGUIMacros.cmake b/graphics/cegui/files/patch-cmake_CEGUIMacros.cmake new file mode 100644 index 000000000000..fedb6bdde63d --- /dev/null +++ b/graphics/cegui/files/patch-cmake_CEGUIMacros.cmake @@ -0,0 +1,53 @@ +--- cmake/CEGUIMacros.cmake.orig 2016-04-23 18:19:40 UTC ++++ cmake/CEGUIMacros.cmake +@@ -51,8 +51,7 @@ macro (cegui_target_link_libraries _TARGET_NAME) + macro (cegui_target_link_libraries _TARGET_NAME) + target_link_libraries(${_TARGET_NAME} ${ARGN}) + +- get_target_property(_TARGET_EXISTS ${_TARGET_NAME}_Static TYPE) +- if (_TARGET_EXISTS) ++ if (TARGET ${_TARGET_NAME}_Static) + foreach(_LIB ${ARGN}) + if (${_LIB} STREQUAL optimized OR ${_LIB} STREQUAL debug OR ${_LIB} STREQUAL general) + set (_BUILD ${_LIB}) +@@ -138,20 +137,19 @@ macro (cegui_add_dependency _TARGET_NAME _DEP_NAME) + macro (cegui_add_dependency _TARGET_NAME _DEP_NAME) + # Optional additional arguments: "SCOPE" "IS_SYSTEM" + get_target_property(_DYNAMIC_EXISTS ${_TARGET_NAME} TYPE) +- get_target_property(_STATIC_EXISTS ${_TARGET_NAME}_Static TYPE) + if ("${ARGC}" GREATER 2) + if (("${ARGC}" GREATER 3) AND "${ARGV3}") + if (_DYNAMIC_EXISTS) + target_include_directories(${_TARGET_NAME} SYSTEM "${ARGV2}" ${${_DEP_NAME}_INCLUDE_DIR}) + endif() +- if (_STATIC_EXISTS) ++ if (TARGET ${_TARGET_NAME}_Static) + target_include_directories(${_TARGET_NAME}_Static SYSTEM "${ARGV2}" ${${_DEP_NAME}_INCLUDE_DIR}) + endif() + else () + if (_DYNAMIC_EXISTS) + target_include_directories(${_TARGET_NAME} "${ARGV2}" ${${_DEP_NAME}_INCLUDE_DIR}) + endif() +- if (_STATIC_EXISTS) ++ if (TARGET ${_TARGET_NAME}_Static) + target_include_directories(${_TARGET_NAME}_Static "${ARGV2}" ${${_DEP_NAME}_INCLUDE_DIR}) + endif() + endif () +@@ -159,7 +157,7 @@ macro (cegui_add_dependency _TARGET_NAME _DEP_NAME) + if (_DYNAMIC_EXISTS) + target_include_directories(${_TARGET_NAME} PRIVATE ${${_DEP_NAME}_INCLUDE_DIR}) + endif() +- if (_STATIC_EXISTS) ++ if (TARGET ${_TARGET_NAME}_Static) + target_include_directories(${_TARGET_NAME}_Static PRIVATE ${${_DEP_NAME}_INCLUDE_DIR}) + endif() + endif () +@@ -189,7 +187,7 @@ macro (cegui_add_dependency _TARGET_NAME _DEP_NAME) + ########################################################################### + # ADD DEPENDENCY DEFS TO STATIC VERSION OF TARGET (if it exists) + ########################################################################### +- if (_STATIC_EXISTS) ++ if (TARGET ${_TARGET_NAME}_Static) + if (${_DEP_NAME}_DEFINITIONS) + set_property( TARGET ${_TARGET_NAME}_Static APPEND PROPERTY COMPILE_DEFINITIONS ${${_DEP_NAME}_DEFINITIONS} ) + endif()