aboutsummaryrefslogtreecommitdiff
path: root/ports/ogre/toolchain_fixes.patch
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2019-08-24 13:43:57 -0700
committerGitHub <noreply@github.com>2019-08-24 13:43:57 -0700
commit1550b9e71b6ef8530b39db281903edcab73c2e14 (patch)
tree91ee3999b75a66f109b72e5da9a647041b9f7f3d /ports/ogre/toolchain_fixes.patch
parent18a07faca5c8440fb77eb9ec1d76f14841686011 (diff)
downloadvcpkg-1550b9e71b6ef8530b39db281903edcab73c2e14.tar.gz
vcpkg-1550b9e71b6ef8530b39db281903edcab73c2e14.zip
[many ports] Updates 2019.07.09 (#7217)
* [many ports] Upgrades 2019.07.11 * Re-generate patches and fix build errors. * [manyport]Fix build errors. * Fix avro-c and console-bridge failures, revert curl and tesseract * fix botan failure * Fix build errors and undo some ports upgrades. * [aws-c-common,chipmunk,cxxopts,grpc]Fix build errors * Fix build errors. * [angle]Undo upgrade changes. * [directxtk]Fix UWP build error (#7233) * Revert leptonica since it cause tesseract failed * Revert jsonnet * [google-cloud-cpp] Disable parallel configure due to source directory writes * [many ports] Undo undesired changes * [bitsery] Fix indentation * [avro-c][aws-c-common][graphite2] Convert line endings to minimize PR diff * fix console-bridge and remove usockets unused patch * update ogre patch * [many ports] Revert unneeded changes w.r.t. master. Add missing write to console-bridge. * [console-bridge] Fix export macro * [avro-c] Revert upgrade; split to #7875 * [avro-c] Complete previous revert
Diffstat (limited to 'ports/ogre/toolchain_fixes.patch')
-rw-r--r--ports/ogre/toolchain_fixes.patch466
1 files changed, 61 insertions, 405 deletions
diff --git a/ports/ogre/toolchain_fixes.patch b/ports/ogre/toolchain_fixes.patch
index 22b2e69c7..9ff2d87df 100644
--- a/ports/ogre/toolchain_fixes.patch
+++ b/ports/ogre/toolchain_fixes.patch
@@ -1,101 +1,49 @@
diff --git a/CMake/CMakeLists.txt b/CMake/CMakeLists.txt
-index a7a3796..7e41f57 100755
+index a7a3796..2e21403 100644
--- a/CMake/CMakeLists.txt
+++ b/CMake/CMakeLists.txt
-@@ -13,13 +13,15 @@
+@@ -13,10 +13,12 @@
# directory, but can also be used for custom projects.
#############################################################
+-if(WIN32 OR APPLE)
+- set(OGRE_CMAKE_DIR "CMake")
+-else()
+- set(OGRE_CMAKE_DIR "${OGRE_LIB_DIRECTORY}/OGRE/cmake")
+if(NOT DEFINED OGRE_CMAKE_DIR)
- if(WIN32 OR APPLE)
- set(OGRE_CMAKE_DIR "CMake")
- else()
- set(OGRE_CMAKE_DIR "${OGRE_LIB_DIRECTORY}/OGRE/cmake")
- endif()
-+endif()
-
--set(INST_FILES Utils/FindPkgMacros.cmake)
-+set(INST_FILES Utils/FindPkgMacros.cmake)
-
- if (OGRE_CONFIG_THREAD_PROVIDER STREQUAL "poco")
- set(INST_FILES ${INST_FILES} Packages/FindPOCO.cmake)
-diff --git a/CMake/ConfigureBuild.cmake b/CMake/ConfigureBuild.cmake
-index 26c384f..131e238 100644
---- a/CMake/ConfigureBuild.cmake
-+++ b/CMake/ConfigureBuild.cmake
-@@ -68,7 +68,7 @@ if (OGRE_CONFIG_THREADS)
-
++ if(WIN32 OR APPLE)
++ set(OGRE_CMAKE_DIR "CMake")
++ else()
++ set(OGRE_CMAKE_DIR "${OGRE_LIB_DIRECTORY}/OGRE/cmake")
++ endif()
endif()
--set(OGRE_ASSERT_MODE 1 CACHE STRING
-+set(OGRE_ASSERT_MODE 1 CACHE STRING
- "Enable Ogre asserts and exceptions. Possible values:
- 0 - Standard asserts in debug builds, nothing in release builds.
- 1 - Standard asserts in debug builds, exceptions in release builds.
-@@ -197,7 +197,7 @@ if (UNIX)
- configure_file(${OGRE_TEMPLATES_DIR}/OGRE-MeshLodGenerator.pc.in ${PROJECT_BINARY_DIR}/pkgconfig/OGRE-MeshLodGenerator.pc @ONLY)
- install(FILES ${PROJECT_BINARY_DIR}/pkgconfig/OGRE-MeshLodGenerator.pc DESTINATION ${OGRE_LIB_DIRECTORY}/pkgconfig)
- endif ()
--
-+
- if (OGRE_BUILD_COMPONENT_TERRAIN)
- if (OGRE_BUILD_COMPONENT_PAGING)
- set(OGRE_PAGING_ADDITIONAL_PACKAGES ", OGRE-Paging = ${OGRE_VERSION}")
+ set(INST_FILES Utils/FindPkgMacros.cmake)
diff --git a/CMake/InstallResources.cmake b/CMake/InstallResources.cmake
-index 783755e..bd7fd3d 100644
+index 783755e..79f7514 100644
--- a/CMake/InstallResources.cmake
+++ b/CMake/InstallResources.cmake
-@@ -131,7 +131,7 @@ configure_file(${OGRE_TEMPLATES_DIR}/tests.cfg.in ${PROJECT_BINARY_DIR}/inst/bin
-
-
- # install resource files
--install(FILES
-+install(FILES
- ${PROJECT_BINARY_DIR}/inst/bin/resources.cfg
- ${PROJECT_BINARY_DIR}/inst/bin/plugins.cfg
- ${PROJECT_BINARY_DIR}/inst/bin/samples.cfg
-@@ -208,17 +208,19 @@ endif ()
+@@ -208,10 +208,12 @@ endif ()
# Create the CMake package files
include(CMakePackageConfigHelpers)
+-if(WIN32 OR APPLE)
+- set(OGRE_CMAKE_DIR "CMake")
+-else()
+- set(OGRE_CMAKE_DIR "${OGRE_LIB_DIRECTORY}/OGRE/cmake")
+if(NOT DEFINED OGRE_CMAKE_DIR)
- if(WIN32 OR APPLE)
- set(OGRE_CMAKE_DIR "CMake")
- else()
- set(OGRE_CMAKE_DIR "${OGRE_LIB_DIRECTORY}/OGRE/cmake")
++ if(WIN32 OR APPLE)
++ set(OGRE_CMAKE_DIR "CMake")
++ else()
++ set(OGRE_CMAKE_DIR "${OGRE_LIB_DIRECTORY}/OGRE/cmake")
++ endif()
endif()
-+endif()
configure_package_config_file(${OGRE_TEMPLATES_DIR}/OGREConfig.cmake.in ${PROJECT_BINARY_DIR}/cmake/OGREConfig.cmake
INSTALL_DESTINATION ${OGRE_CMAKE_DIR}
- PATH_VARS CMAKE_INSTALL_PREFIX)
- write_basic_package_version_file(
-- ${PROJECT_BINARY_DIR}/cmake/OGREConfigVersion.cmake
-- VERSION ${OGRE_VERSION}
-+ ${PROJECT_BINARY_DIR}/cmake/OGREConfigVersion.cmake
-+ VERSION ${OGRE_VERSION}
- COMPATIBILITY SameMajorVersion)
- install(FILES
- ${PROJECT_BINARY_DIR}/cmake/OGREConfig.cmake
-@@ -228,4 +230,4 @@ install(FILES
- install(EXPORT OgreTargetsRelease CONFIGURATIONS Release None "" DESTINATION ${OGRE_CMAKE_DIR} FILE OgreTargets.cmake)
- install(EXPORT OgreTargetsRelWithDebInfo CONFIGURATIONS RelWithDebInfo DESTINATION ${OGRE_CMAKE_DIR} FILE OgreTargets.cmake)
- install(EXPORT OgreTargetsMinSizeRel CONFIGURATIONS MinSizeRel DESTINATION ${OGRE_CMAKE_DIR} FILE OgreTargets.cmake)
--install(EXPORT OgreTargetsDebug CONFIGURATIONS Debug DESTINATION ${OGRE_CMAKE_DIR} FILE OgreTargets.cmake)
-\ No newline at end of file
-+install(EXPORT OgreTargetsDebug CONFIGURATIONS Debug DESTINATION ${OGRE_CMAKE_DIR} FILE OgreTargets.cmake)
diff --git a/CMake/Packages/FindCg.cmake b/CMake/Packages/FindCg.cmake
-index 4501cf9..e91bfd0 100644
+index 4501cf9..7eb57c3 100644
--- a/CMake/Packages/FindCg.cmake
+++ b/CMake/Packages/FindCg.cmake
-@@ -11,7 +11,7 @@
- # Once done, this will define
- #
- # Cg_FOUND - system has Cg
--# Cg_INCLUDE_DIRS - the Cg include directories
-+# Cg_INCLUDE_DIRS - the Cg include directories
- # Cg_LIBRARIES - link these to use Cg
-
- include(FindPkgMacros)
@@ -56,7 +56,7 @@ endif()
find_library(Cg_LIBRARY_REL NAMES ${Cg_LIBRARY_NAMES} HINTS ${Cg_LIB_SEARCH_PATH} ${Cg_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" Release RelWithDebInfo MinSizeRel)
@@ -106,19 +54,10 @@ index 4501cf9..e91bfd0 100644
if (WIN32)
if (CMAKE_CL_64)
diff --git a/CMake/Packages/FindFreeImage.cmake b/CMake/Packages/FindFreeImage.cmake
-index 7c89ec5..445d86a 100644
+index 7c89ec5..d8314f0 100644
--- a/CMake/Packages/FindFreeImage.cmake
+++ b/CMake/Packages/FindFreeImage.cmake
-@@ -11,7 +11,7 @@
- # Once done, this will define
- #
- # FreeImage_FOUND - system has FreeImage
--# FreeImage_INCLUDE_DIRS - the FreeImage include directories
-+# FreeImage_INCLUDE_DIRS - the FreeImage include directories
- # FreeImage_LIBRARIES - link these to use FreeImage
-
- include(FindPkgMacros)
-@@ -43,7 +43,6 @@ find_path(FreeImage_INCLUDE_DIR NAMES FreeImage.h HINTS ${FreeImage_INC_SEARCH_P
+@@ -43,7 +43,7 @@ find_path(FreeImage_INCLUDE_DIR NAMES FreeImage.h HINTS ${FreeImage_INC_SEARCH_P
find_library(FreeImage_LIBRARY_REL NAMES ${FreeImage_LIBRARY_NAMES} HINTS ${FreeImage_LIB_SEARCH_PATH} ${FreeImage_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" Release RelWithDebInfo MinSizeRel)
find_library(FreeImage_LIBRARY_DBG NAMES ${FreeImage_LIBRARY_NAMES_DBG} HINTS ${FreeImage_LIB_SEARCH_PATH} ${FreeImage_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" Debug)
@@ -126,21 +65,12 @@ index 7c89ec5..445d86a 100644
+make_library_set(FreeImage)
findpkg_finish(FreeImage)
--
+
diff --git a/CMake/Packages/FindGLSLOptimizer.cmake b/CMake/Packages/FindGLSLOptimizer.cmake
-index dd4b179..8e51d2f 100644
+index dd4b179..6f158fc 100644
--- a/CMake/Packages/FindGLSLOptimizer.cmake
+++ b/CMake/Packages/FindGLSLOptimizer.cmake
-@@ -11,7 +11,7 @@
- # Once done, this will define
- #
- # GLSL_Optimizer_FOUND - system has GLSL_Optimizer
--# GLSL_Optimizer_INCLUDE_DIRS - the GLSL_Optimizer include directories
-+# GLSL_Optimizer_INCLUDE_DIRS - the GLSL_Optimizer include directories
- # GLSL_Optimizer_LIBRARIES - link these to use GLSL_Optimizer
-
- include(FindPkgMacros)
-@@ -38,8 +38,7 @@ findpkg_framework(GLSL_Optimizer)
+@@ -38,7 +38,7 @@ findpkg_framework(GLSL_Optimizer)
find_path(GLSL_Optimizer_INCLUDE_DIR NAMES glsl_optimizer.h HINTS ${GLSL_Optimizer_INC_SEARCH_PATH} ${GLSL_Optimizer_PKGC_INCLUDE_DIRS} PATH_SUFFIXES GLSL_Optimizer)
find_library(GLSL_Optimizer_LIBRARY_REL NAMES ${GLSL_Optimizer_LIBRARY_NAMES} HINTS ${GLSL_Optimizer_LIB_SEARCH_PATH} ${GLSL_Optimizer_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" Release RelWithDebInfo MinSizeRel)
find_library(GLSL_Optimizer_LIBRARY_DBG NAMES ${GLSL_Optimizer_LIBRARY_NAMES_DBG} HINTS ${GLSL_Optimizer_LIB_SEARCH_PATH} ${GLSL_Optimizer_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" Debug)
@@ -149,21 +79,11 @@ index dd4b179..8e51d2f 100644
findpkg_finish(GLSL_Optimizer)
add_parent_dir(GLSL_Optimizer_INCLUDE_DIRS GLSL_Optimizer_INCLUDE_DIR)
--
diff --git a/CMake/Packages/FindHLSL2GLSL.cmake b/CMake/Packages/FindHLSL2GLSL.cmake
-index 7125895..f73c928 100644
+index 7125895..13a306f 100644
--- a/CMake/Packages/FindHLSL2GLSL.cmake
+++ b/CMake/Packages/FindHLSL2GLSL.cmake
-@@ -11,7 +11,7 @@
- # Once done, this will define
- #
- # HLSL2GLSL_FOUND - system has HLSL2GLSL
--# HLSL2GLSL_INCLUDE_DIRS - the HLSL2GLSL include directories
-+# HLSL2GLSL_INCLUDE_DIRS - the HLSL2GLSL include directories
- # HLSL2GLSL_LIBRARIES - link these to use HLSL2GLSL
-
- include(FindPkgMacros)
-@@ -38,8 +38,7 @@ findpkg_framework(HLSL2GLSL)
+@@ -38,7 +38,7 @@ findpkg_framework(HLSL2GLSL)
find_path(HLSL2GLSL_INCLUDE_DIR NAMES hlsl2glsl.h HINTS ${HLSL2GLSL_INC_SEARCH_PATH} ${HLSL2GLSL_PKGC_INCLUDE_DIRS} PATH_SUFFIXES HLSL2GLSL)
find_library(HLSL2GLSL_LIBRARY_REL NAMES ${HLSL2GLSL_LIBRARY_NAMES} HINTS ${HLSL2GLSL_LIB_SEARCH_PATH} ${HLSL2GLSL_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" Release RelWithDebInfo MinSizeRel)
find_library(HLSL2GLSL_LIBRARY_DBG NAMES ${HLSL2GLSL_LIBRARY_NAMES_DBG} HINTS ${HLSL2GLSL_LIB_SEARCH_PATH} ${HLSL2GLSL_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" Debug)
@@ -172,55 +92,24 @@ index 7125895..f73c928 100644
findpkg_finish(HLSL2GLSL)
add_parent_dir(HLSL2GLSL_INCLUDE_DIRS HLSL2GLSL_INCLUDE_DIR)
--
diff --git a/CMake/Packages/FindNVAPI.cmake b/CMake/Packages/FindNVAPI.cmake
-index 2b9deba..6d8fb37 100644
+index 2b9deba..f33a298 100644
--- a/CMake/Packages/FindNVAPI.cmake
+++ b/CMake/Packages/FindNVAPI.cmake
-@@ -11,7 +11,7 @@
- # Once done, this will define
- #
- # NVAPI_FOUND - system has NVAPI
--# NVAPI_INCLUDE_DIRS - the NVAPI include directories
-+# NVAPI_INCLUDE_DIRS - the NVAPI include directories
- # NVAPI_LIBRARIES - link these to use NVAPI
-
- include(FindPkgMacros)
@@ -44,7 +44,7 @@ findpkg_framework(NVAPI)
- find_path(NVAPI_INCLUDE_DIR NAMES nvapi.h HINTS ${NVAPI_FRAMEWORK_INCLUDES} ${NVAPI_INC_SEARCH_PATH} ${NVAPI_PKGC_INCLUDE_DIRS} PATH_SUFFIXES NVAPI)
- find_library(NVAPI_LIBRARY_REL NAMES ${NVAPI_LIBRARY_NAMES} HINTS ${NVAPI_LIB_SEARCH_PATH} ${NVAPI_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" release relwithdebinfo minsizerel)
- find_library(NVAPI_LIBRARY_DBG NAMES ${NVAPI_LIBRARY_NAMES_DBG} HINTS ${NVAPI_LIB_SEARCH_PATH} ${NVAPI_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" debug)
--make_library_set(NVAPI_LIBRARY)
-+make_library_set(NVAPI)
-
- findpkg_finish(NVAPI)
--add_parent_dir(NVAPI_INCLUDE_DIRS NVAPI_INCLUDE_DIR)
+ find_path(NVAPI_INCLUDE_DIR NAMES nvapi.h HINTS ${NVAPI_FRAMEWORK_INCLUDES} ${NVAPI_INC_SEARCH_PATH} ${NVAPI_PKGC_INCLUDE_DIRS} PATH_SUFFIXES NVAPI)
+ find_library(NVAPI_LIBRARY_REL NAMES ${NVAPI_LIBRARY_NAMES} HINTS ${NVAPI_LIB_SEARCH_PATH} ${NVAPI_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" release relwithdebinfo minsizerel)
+ find_library(NVAPI_LIBRARY_DBG NAMES ${NVAPI_LIBRARY_NAMES_DBG} HINTS ${NVAPI_LIB_SEARCH_PATH} ${NVAPI_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" debug)
+-make_library_set(NVAPI_LIBRARY)
++make_library_set(NVAPI)
+
+ findpkg_finish(NVAPI)
+ add_parent_dir(NVAPI_INCLUDE_DIRS NVAPI_INCLUDE_DIR)
\ No newline at end of file
-+add_parent_dir(NVAPI_INCLUDE_DIRS NVAPI_INCLUDE_DIR)
diff --git a/CMake/Packages/FindPOCO.cmake b/CMake/Packages/FindPOCO.cmake
-index 6b6d7fa..c2cb80e 100644
+index 6b6d7fa..3667b8b 100644
--- a/CMake/Packages/FindPOCO.cmake
+++ b/CMake/Packages/FindPOCO.cmake
-@@ -11,7 +11,7 @@
- # Once done, this will define
- #
- # POCO_FOUND - system has POCO
--# POCO_INCLUDE_DIRS - the POCO include directories
-+# POCO_INCLUDE_DIRS - the POCO include directories
- # POCO_LIBRARIES - link these to use POCO
-
- include(FindPkgMacros)
-@@ -23,8 +23,8 @@ getenv_path(POCO_ROOT)
- getenv_path(POCO_BASE)
-
- # construct search paths
--set(POCO_PREFIX_PATH
-- ${POCO_HOME} ${ENV_POCO_HOME}
-+set(POCO_PREFIX_PATH
-+ ${POCO_HOME} ${ENV_POCO_HOME}
- ${POCO_ROOT} ${ENV_POCO_ROOT}
- ${POCO_BASE} ${ENV_POCO_BASE}
- )
@@ -50,7 +50,7 @@ findpkg_framework(POCO)
find_path(POCO_INCLUDE_DIR NAMES Poco/Foundation.h HINTS ${POCO_INC_SEARCH_PATH} ${POCO_PKGC_INCLUDE_DIRS} PATH_SUFFIXES Foundation/include)
find_library(POCO_LIBRARY_REL NAMES ${POCO_LIBRARY_NAMES} HINTS ${POCO_LIB_SEARCH_PATH} ${POCO_PKGC_LIBRARY_DIRS} PATH_SUFFIXES Linux/i686)
@@ -257,52 +146,18 @@ index 6b6d7fa..c2cb80e 100644
findpkg_finish(POCO_NetSSL)
# Look for Poco's XML package
-@@ -96,6 +96,5 @@ get_debug_names(POCO_XML_LIBRARY_NAMES)
+@@ -96,6 +96,6 @@ get_debug_names(POCO_XML_LIBRARY_NAMES)
find_path(POCO_XML_INCLUDE_DIR NAMES Poco/XML/XML.h HINTS ${POCO_INCLUDE_DIR} ${POCO_INC_SEARCH_PATH} ${POCO_PKGC_INCLUDE_DIRS} PATH_SUFFIXES XML/include)
find_library(POCO_XML_LIBRARY_REL NAMES ${POCO_XML_LIBRARY_NAMES} HINTS ${POCO_LIB_SEARCH_PATH} ${POCO_PKGC_LIBRARY_DIRS} PATH_SUFFIXES Linux/i686)
find_library(POCO_XML_LIBRARY_DBG NAMES ${POCO_XML_LIBRARY_NAMES_DBG} HINTS ${POCO_LIB_SEARCH_PATH} ${POCO_PKGC_LIBRARY_DIRS} PATH_SUFFIXES Linux/i686)
-make_library_set(POCO_XML_LIBRARY)
+make_library_set(POCO_XML)
findpkg_finish(POCO_XML)
--
+
diff --git a/CMake/Packages/FindTBB.cmake b/CMake/Packages/FindTBB.cmake
-index 0c48510..7f0c8f6 100644
+index 0c48510..c121966 100644
--- a/CMake/Packages/FindTBB.cmake
+++ b/CMake/Packages/FindTBB.cmake
-@@ -11,7 +11,7 @@
- # Once done, this will define
- #
- # TBB_FOUND - system has TBB
--# TBB_INCLUDE_DIRS - the TBB include directories
-+# TBB_INCLUDE_DIRS - the TBB include directories
- # TBB_LIBRARIES - link these to use TBB
-
- include(FindPkgMacros)
-@@ -23,8 +23,8 @@ getenv_path(TBB_ROOT)
- getenv_path(TBB_BASE)
-
- # construct search paths
--set(TBB_PREFIX_PATH
-- ${TBB_HOME} ${ENV_TBB_HOME}
-+set(TBB_PREFIX_PATH
-+ ${TBB_HOME} ${ENV_TBB_HOME}
- ${TBB_ROOT} ${ENV_TBB_ROOT}
- ${TBB_BASE} ${ENV_TBB_BASE}
- )
-@@ -68,11 +68,11 @@ if (WIN32 AND MSVC)
- endif ()
- if (MSVC_VERSION EQUAL 1900)
- set(COMPILER_PREFIX "vc13")
-- endif ()
-+ endif ()
- if (MSVC_VERSION EQUAL 1911)
- set(COMPILER_PREFIX "vc14")
- endif ()
--
-+
- # for each prefix path, add ia32/64\${COMPILER_PREFIX}\lib to the lib search path
- foreach (dir ${TBB_PREFIX_PATH})
- if (CMAKE_CL_64)
@@ -104,7 +104,7 @@ findpkg_framework(TBB)
find_path(TBB_INCLUDE_DIR NAMES tbb/tbb.h HINTS ${TBB_INC_SEARCH_PATH} ${TBB_PKGC_INCLUDE_DIRS})
find_library(TBB_LIBRARY_REL NAMES ${TBB_LIBRARY_NAMES} HINTS ${TBB_LIB_SEARCH_PATH} ${TBB_PKGC_LIBRARY_DIRS})
@@ -329,19 +184,10 @@ index 0c48510..7f0c8f6 100644
+make_library_set(TBB_MALLOC_PROXY)
findpkg_finish(TBB_MALLOC_PROXY)
diff --git a/CMake/Packages/FindZZip.cmake b/CMake/Packages/FindZZip.cmake
-index e97951e..1c7cf00 100644
+index e97951e..54c2567 100644
--- a/CMake/Packages/FindZZip.cmake
+++ b/CMake/Packages/FindZZip.cmake
-@@ -11,7 +11,7 @@
- # Once done, this will define
- #
- # ZZip_FOUND - system has ZZip
--# ZZip_INCLUDE_DIRS - the ZZip include directories
-+# ZZip_INCLUDE_DIRS - the ZZip include directories
- # ZZip_LIBRARIES - link these to use ZZip
-
- include(FindPkgMacros)
-@@ -39,12 +39,11 @@ use_pkgconfig(ZZip_PKGC zziplib)
+@@ -39,12 +39,12 @@ use_pkgconfig(ZZip_PKGC zziplib)
findpkg_framework(ZZip)
@@ -355,66 +201,6 @@ index e97951e..1c7cf00 100644
+make_library_set(ZZip)
findpkg_finish(ZZip)
--
-diff --git a/CMake/Templates/OGREConfig.cmake.in b/CMake/Templates/OGREConfig.cmake.in
-index 79c5394..7b22a0d 100644
---- a/CMake/Templates/OGREConfig.cmake.in
-+++ b/CMake/Templates/OGREConfig.cmake.in
-@@ -10,12 +10,12 @@
- # Find OGRE includes and library
- #
- # This module defines
--# OGRE_INCLUDE_DIRS - the OGRE include directories
-+# OGRE_INCLUDE_DIRS - the OGRE include directories
- # OGRE_LIBRARIES - link these to use the OGRE
- # OGRE_LIBRARY_DIRS, the location of the libraries
- # OGRE_STATIC - whther ogre was build as static lib
- # OGRE_${COMPONENT}_FOUND - ${COMPONENT} is available
--# OGRE_${COMPONENT}_LIBRARIES - link these to only use ${COMPONENT}
-+# OGRE_${COMPONENT}_LIBRARIES - link these to only use ${COMPONENT}
- # OGRE_PLUGIN_DIR - The directory where the OGRE plugins are located
- # OGRE_MEDIA_DIR - The directory where the OGRE sample media is located
- # OGRE_CONFIG_DIR - The directory where the OGRE config files are located
-@@ -25,7 +25,7 @@
- set(OGRE_STATIC @OGRE_STATIC@)
- set(OGRE_MEDIA_DIR "@PACKAGE_CMAKE_INSTALL_PREFIX@/@OGRE_MEDIA_PATH@")
- set(OGRE_PLUGIN_DIR "@PACKAGE_CMAKE_INSTALL_PREFIX@/lib/OGRE")
--set(OGRE_CONFIG_DIR "@PACKAGE_CMAKE_INSTALL_PREFIX@/@OGRE_CFG_INSTALL_PATH@")
-+set(OGRE_CONFIG_DIR "@PACKAGE_CMAKE_INSTALL_PREFIX@/@OGRE_CFG_INSTALL_PATH@")
-
- set(OGRE_PREFIX_DIR "@PACKAGE_CMAKE_INSTALL_PREFIX@")
- get_filename_component(OGRE_LIBRARY_DIRS "${OGRE_PREFIX_DIR}/lib" ABSOLUTE)
-@@ -47,7 +47,7 @@ set(OGRE_PLUGINS)
- macro(ogre_declare_component COMPONENT)
- set(OGRE_${COMPONENT}_FOUND TRUE)
- set(OGRE_${COMPONENT}_LIBRARIES Ogre${COMPONENT}) # backwards compatibility
--
-+
- list(APPEND OGRE_COMPONENTS ${COMPONENT})
- list(APPEND OGRE_LIBRARIES Ogre${COMPONENT})
- endmacro()
-@@ -55,11 +55,11 @@ endmacro()
- macro(ogre_declare_plugin TYPE COMPONENT)
- set(OGRE_${TYPE}_${COMPONENT}_FOUND TRUE)
- set(OGRE_${TYPE}_${COMPONENT}_LIBRARIES ${TYPE}_${COMPONENT})
--
-+
- if(@OGRE_STATIC@)
- list(APPEND OGRE_LIBRARIES ${TYPE}_${COMPONENT})
- endif()
--
-+
- list(APPEND OGRE_PLUGINS ${TYPE}_${COMPONENT})
- endmacro()
-
-@@ -149,7 +149,7 @@ endif()
- cmake_policy(POP)
-
- if(@OGRE_STATIC@)
-- list(APPEND OGRE_LIBRARIES OgreGLSupport@OGRE_LIB_SUFFIX@ @CMAKE_DL_LIBS@) # glXXw uses dlopen
-+ list(APPEND OGRE_LIBRARIES OgreGLSupport @CMAKE_DL_LIBS@) # glXXw uses dlopen
- list(APPEND OGRE_LIBRARY_DIRS "${OGRE_LIBRARY_DIRS}/OGRE") # plugins folder
- endif()
diff --git a/CMake/Utils/FindPkgMacros.cmake b/CMake/Utils/FindPkgMacros.cmake
index 374f84b..dc7066d 100644
@@ -452,150 +238,50 @@ index 374f84b..dc7066d 100644
# Generate debug names from given release names
diff --git a/CMakeLists.txt b/CMakeLists.txt
-index d2819f0..f40239f 100644
+index 3e09d2d..58968f0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
-@@ -142,7 +142,7 @@ if (MSVC)
- set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /bigobj")
- endif ()
-
-- if (OGRE_PROJECT_FOLDERS)
-+ if (OGRE_PROJECT_FOLDERS)
- # Turn on the ability to create folders to organize projects (.vcproj)
- # It creates "CMakePredefinedTargets" folder by default and adds CMake
- # defined projects like INSTALL.vcproj and ZERO_CHECK.vcproj
-@@ -274,12 +274,8 @@ elseif(EMSCRIPTEN)
+@@ -274,7 +274,7 @@ elseif(EMSCRIPTEN)
elseif (APPLE AND NOT APPLE_IOS)
set(XCODE_ATTRIBUTE_SDKROOT macosx)
- if(CMAKE_GENERATOR STREQUAL "Unix Makefiles")
++ if(1)
execute_process(COMMAND xcodebuild -version -sdk "${XCODE_ATTRIBUTE_SDKROOT}" Path | head -n 1 OUTPUT_VARIABLE CMAKE_OSX_SYSROOT)
string(REGEX REPLACE "(\r?\n)+$" "" CMAKE_OSX_SYSROOT "${CMAKE_OSX_SYSROOT}")
-- else()
-- set(CMAKE_OSX_SYSROOT macosx)
-- endif()
-
- # Make sure that the OpenGL render system is selected for non-iOS Apple builds
- set(OGRE_BUILD_RENDERSYSTEM_GLES2 FALSE)
-@@ -310,7 +306,7 @@ include(Dependencies)
- # Customise what to build
- option(OGRE_STATIC "Static build" FALSE)
- option(OGRE_ENABLE_PRECOMPILED_HEADERS "Use precompiled headers to speed up build" TRUE)
--set(OGRE_RESOURCEMANAGER_STRICT "2" CACHE STRING
-+set(OGRE_RESOURCEMANAGER_STRICT "2" CACHE STRING
- "Make ResourceManager strict for faster operation. Possible values:
- 0 - OFF search in all groups twice - for case sensitive and insensitive lookup [DEPRECATED]
- 1 - PEDANTIC require an explicit resource group. Case sensitive lookup.
-@@ -352,7 +348,7 @@ cmake_dependent_option(OGRE_BUILD_LIBS_AS_FRAMEWORKS "Build frameworks for libra
- option(OGRE_BUILD_TESTS "Build the unit tests & PlayPen" FALSE)
- option(OGRE_CONFIG_DOUBLE "Use doubles instead of floats in Ogre" FALSE)
- option(OGRE_CONFIG_NODE_INHERIT_TRANSFORM "Tells the node whether it should inherit full transform from it's parent node or derived position, orientation and scale" FALSE)
--set(OGRE_CONFIG_THREADS "3" CACHE STRING
-+set(OGRE_CONFIG_THREADS "3" CACHE STRING
- "Enable Ogre thread safety support for multithreading. Possible values:
- 0 - no thread safety. DefaultWorkQueue is not threaded.
- 1 - background resource preparation and loading is thread safe. Threaded DefaultWorkQueue. [DEPRECATED]
+ else()
diff --git a/Components/Overlay/CMakeLists.txt b/Components/Overlay/CMakeLists.txt
-index bdb303d..e8031d1 100644
+index bdb303d..d9cc221 100644
--- a/Components/Overlay/CMakeLists.txt
+++ b/Components/Overlay/CMakeLists.txt
-@@ -13,7 +13,7 @@
-
- # define header and source files for the library
- file(GLOB HEADER_FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/*.h")
--list(APPEND HEADER_FILES
-+list(APPEND HEADER_FILES
- ${PROJECT_BINARY_DIR}/include/OgreOverlayPrerequisites.h
- ${CMAKE_CURRENT_SOURCE_DIR}/include/OgreOverlay.i)
- file(GLOB SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
-@@ -21,17 +21,17 @@ file(GLOB SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
+@@ -21,7 +21,7 @@ file(GLOB SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
# setup target
add_library(OgreOverlay ${OGRE_COMP_LIB_TYPE} ${HEADER_FILES} ${SOURCE_FILES} ${PLATFORM_HEADER_FILES} ${PLATFORM_SOURCE_FILES})
set_target_properties(OgreOverlay PROPERTIES VERSION ${OGRE_SOVERSION} SOVERSION ${OGRE_SOVERSION})
-target_link_libraries(OgreOverlay PUBLIC OgreMain PRIVATE "${FREETYPE_LIBRARIES}" ZLIB::ZLIB)
--target_include_directories(OgreOverlay PUBLIC
+target_link_libraries(OgreOverlay PUBLIC OgreMain PRIVATE ${FREETYPE_LIBRARIES} ZLIB::ZLIB)
-+target_include_directories(OgreOverlay PUBLIC
+ target_include_directories(OgreOverlay PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
$<INSTALL_INTERFACE:include/OGRE/Overlay>
- PRIVATE ${FREETYPE_INCLUDE_DIRS})
-
--generate_export_header(OgreOverlay
-+generate_export_header(OgreOverlay
- EXPORT_MACRO_NAME _OgreOverlayExport
- EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/include/OgreOverlayPrerequisites.h)
-
--# install
-+# install
- ogre_config_framework(OgreOverlay)
- ogre_config_component(OgreOverlay)
-
-@@ -40,4 +40,4 @@ install(FILES ${HEADER_FILES}
- )
- install(FILES "${PROJECT_SOURCE_DIR}/Media/packs/profiler.zip"
- DESTINATION "${OGRE_MEDIA_PATH}/packs/"
--)
-\ No newline at end of file
-+)
diff --git a/OgreMain/CMakeLists.txt b/OgreMain/CMakeLists.txt
-index 6ec4e34..2803a8a 100644
+index 6ec4e34..cc9cb9d 100644
--- a/OgreMain/CMakeLists.txt
+++ b/OgreMain/CMakeLists.txt
-@@ -188,21 +188,21 @@ if (WINDOWS_STORE OR WINDOWS_PHONE)
- set_target_properties(OgreMain PROPERTIES VS_WINRT_COMPONENT "true")
- endif ()
-
--generate_export_header(OgreMain
-+generate_export_header(OgreMain
- EXPORT_MACRO_NAME _OgreExport
- NO_EXPORT_MACRO_NAME _OgrePrivate
- DEPRECATED_MACRO_NAME OGRE_DEPRECATED
- EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/include/OgreExports.h)
-
--target_include_directories(OgreMain PUBLIC
-- "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
-+target_include_directories(OgreMain PUBLIC
-+ "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
- "$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include>"
- $<INSTALL_INTERFACE:include/OGRE>
- PRIVATE "${OGRE_PROFILING_REMOTERY_PATH}")
-
- # In visual studio 2010 - 64 bit we get this error: "LINK : fatal error LNK1210: exceeded internal ILK size limit; link with /INCREMENTAL:NO"
- if(WIN32 AND MSVC10 AND CMAKE_CL_64)
-- set_target_properties(OgreMain PROPERTIES
-+ set_target_properties(OgreMain PROPERTIES
- VERSION ${OGRE_SOVERSION}
- LINK_FLAGS "/INCREMENTAL:NO"
- )
-@@ -211,7 +211,7 @@ else()
- endif()
-
- if(OGRE_GCC_VERSION VERSION_EQUAL 4.8 OR OGRE_GCC_VERSION VERSION_GREATER 4.8)
-- if(CMAKE_SYSTEM_NAME STREQUAL "Android")
-+ if(CMAKE_SYSTEM_NAME STREQUAL "Android")
- list(APPEND LIBRARIES "atomic")
- else()
- list(APPEND LIBRARIES "-latomic")
-@@ -226,8 +226,7 @@ if (APPLE)
+@@ -225,8 +225,6 @@ if (APPLE)
+ set_target_properties(OgreMain PROPERTIES
LINK_FLAGS "-framework IOKit -framework Cocoa -framework Carbon -framework OpenGL -framework CoreVideo"
)
-
+-
- set(OGRE_OSX_BUILD_CONFIGURATION "$(PLATFORM_NAME)/$(CONFIGURATION)")
--
-+
+
if(OGRE_BUILD_LIBS_AS_FRAMEWORKS)
add_custom_command(TARGET OgreMain POST_BUILD
- COMMAND mkdir ARGS -p ${PROJECT_BINARY_DIR}/lib/${OGRE_OSX_BUILD_CONFIGURATION}/Ogre.framework/Headers/Threading
diff --git a/PlugIns/EXRCodec/CMakeLists.txt b/PlugIns/EXRCodec/CMakeLists.txt
-index e9c936a..a83d793 100644
+index e9c936a..bb8747e 100644
--- a/PlugIns/EXRCodec/CMakeLists.txt
+++ b/PlugIns/EXRCodec/CMakeLists.txt
-@@ -13,14 +13,14 @@ file(GLOB SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
-
- add_library(Codec_EXR ${OGRE_LIB_TYPE} ${HEADER_FILES} ${SOURCE_FILES})
- target_link_libraries(Codec_EXR OgreMain ${OPENEXR_LIBRARIES})
--target_include_directories(Codec_EXR PUBLIC
-+target_include_directories(Codec_EXR PUBLIC
+@@ -16,7 +16,7 @@ target_link_libraries(Codec_EXR OgreMain ${OPENEXR_LIBRARIES})
+ target_include_directories(Codec_EXR PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
$<INSTALL_INTERFACE:include/OGRE/Plugins/EXRCodec>)
-target_include_directories(Codec_EXR SYSTEM PRIVATE "${OPENEXR_INCLUDE_DIR}/OpenEXR")
@@ -603,33 +289,3 @@ index e9c936a..a83d793 100644
ogre_config_framework(Codec_EXR)
ogre_config_plugin(Codec_EXR)
--generate_export_header(Codec_EXR
-+generate_export_header(Codec_EXR
- EXPORT_MACRO_NAME _OgreEXRPluginExport
- EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/include/OgreEXRCodecExports.h)
- install(FILES ${HEADER_FILES} DESTINATION include/OGRE/Plugins/EXRCodec)
-diff --git a/RenderSystems/GL3Plus/CMakeLists.txt b/RenderSystems/GL3Plus/CMakeLists.txt
-index ba55b43..66c2758 100644
---- a/RenderSystems/GL3Plus/CMakeLists.txt
-+++ b/RenderSystems/GL3Plus/CMakeLists.txt
-@@ -21,12 +21,12 @@ set(HEADER_FILES ${HEADER_FILES} ${GLSL_HEADERS})
- add_definitions(${OGRE_VISIBILITY_FLAGS})
-
- if(OGRE_CONFIG_ENABLE_GL_STATE_CACHE_SUPPORT)
-- set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/src/OgreGL3PlusStateCacheManager.cpp
-+ set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/src/OgreGL3PlusStateCacheManager.cpp
- PROPERTIES COMPILE_DEFINITIONS OGRE_ENABLE_STATE_CACHE)
- endif()
- add_library(RenderSystem_GL3Plus ${OGRE_LIB_TYPE} ${HEADER_FILES} ${GLSL_SOURCE} ${SOURCE_FILES})
- target_link_libraries(RenderSystem_GL3Plus OgreMain OgreGLSupport ${OPENGL_gl_LIBRARY} ${CMAKE_DL_LIBS})
--target_include_directories(RenderSystem_GL3Plus PUBLIC
-+target_include_directories(RenderSystem_GL3Plus PUBLIC
- "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
- "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/GLSL>"
- $<INSTALL_INTERFACE:include/OGRE/RenderSystems/GL3Plus>
-@@ -44,4 +44,4 @@ ogre_config_plugin(RenderSystem_GL3Plus)
-
- install(FILES ${HEADER_FILES} ${GLSUPPORT_HEADERS} DESTINATION include/OGRE/RenderSystems/GL3Plus)
- install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/GL DESTINATION include/OGRE/RenderSystems/GL3Plus)
--install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/GLSL/ DESTINATION include/OGRE/RenderSystems/GL3Plus)
-+install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/GLSL DESTINATION include/OGRE/RenderSystems/GL3Plus)