🐛 Fixed OGRE 13 build

This commit is contained in:
Edgar 2021-09-04 16:04:16 +00:00 committed by GitHub
parent 6f66f4939c
commit 8be318a630
3 changed files with 14 additions and 0 deletions

View File

@ -10,6 +10,7 @@ patches:
- patch_file: "patches/13.0.0/CMakeLists.txt.patch"
- patch_file: "patches/13.0.0/pugixml-fix.patch"
- patch_file: "patches/13.0.0/FindPkgMacros.cmake.patch"
- patch_file: "patches/13.0.1/FixFindOpenGLES2.cmake.patch"
"13.0.1":
- patch_file: "patches/13.0.1/CMakeLists.txt.patch"
- patch_file: "patches/13.0.1/pugixml-fix.patch"

View File

@ -30,6 +30,8 @@ class OGREConan(ConanFile):
def build(self):
cmake = CMake(self)
cmake.definitions["OGRE_BUILD_DEPENDENCIES"] = "OFF"
cmake.definitions["OGRE_COPY_DEPENDENCIES"] = "OFF"
cmake.definitions["OGRE_INSTALL_DEPENDENCIES"] = "OFF"
cmake.definitions["OGRE_BUILD_COMPONENT_OVERLAY_IMGUI"] = "ON"
cmake.definitions["OGRE_BUILD_COMPONENT_CSHARP"] = "OFF"
cmake.definitions["OGRE_BUILD_COMPONENT_JAVA"] = "OFF"

View File

@ -0,0 +1,11 @@
--- CMake/Packages/FindOpenGLES2.cmake
+++ CMake/Packages/FindOpenGLES2.cmake
@@ -23,6 +23,8 @@
# EGL_INCLUDE_DIR - the EGL include directory
# EGL_LIBRARIES - Link these to use EGL
+include(FindPkgMacros)
+
IF(APPLE)
create_search_paths(/Developer/Platforms)
findpkg_framework(OpenGLES2)