aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/ogre/cmake4.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/ogre/cmake4.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/ogre/cmake4.patch')
-rw-r--r--vcpkg/ports/ogre/cmake4.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/ports/ogre/cmake4.patch b/vcpkg/ports/ogre/cmake4.patch
new file mode 100644
index 0000000..993f9a4
--- /dev/null
+++ b/vcpkg/ports/ogre/cmake4.patch
@@ -0,0 +1,30 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 15edbe3917..206d532ddb 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -46,11 +46,6 @@ endif()
+ if (APPLE AND NOT ANDROID AND NOT EMSCRIPTEN AND NOT ANDROID_PLATFORM)
+ SET(CMAKE_SIZEOF_VOID_P 4)
+
+- if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16.0")
+- enable_language(OBJC)
+- enable_language(OBJCXX)
+- endif()
+-
+ if(POLICY CMP0068)
+ cmake_policy(SET CMP0068 NEW) # CMake 3.9+: `RPATH` settings on macOS do not affect `install_name`.
+ endif()
+@@ -65,6 +60,13 @@ endif ()
+
+ project(OGRE VERSION 14.3.2)
+
++if (APPLE AND NOT ANDROID AND NOT EMSCRIPTEN AND NOT ANDROID_PLATFORM)
++ if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16.0")
++ enable_language(OBJC)
++ enable_language(OBJCXX)
++ endif()
++endif()
++
+ # extra version info
+ set(OGRE_VERSION_SUFFIX "")
+ set(OGRE_VERSION_NAME "Tsathoggua")