Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OpenCV] Update to v4.1.1 #5169

Merged
merged 50 commits into from
Aug 12, 2019
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
3a2b679
[OpenCV] update to v4
cenit Jun 18, 2019
a198c87
[OpenCV] update to v4.1
cenit Jun 19, 2019
a3bf05d
merge
cenit Jun 19, 2019
4bef4ba
[OpenCV] merge #6901 and #6812
cenit Jun 19, 2019
6e3eb4c
[OpenCV] port patches to v4.1
cenit Jun 19, 2019
f72cd07
[OpenCV] fix naming
cenit Jun 19, 2019
c188443
[OpenCV] fix regression with static linkage
cenit Jun 19, 2019
30a34b6
[OpenCV] fix linking to optional feature dependencies in static mode
cenit Jun 20, 2019
ab76ce0
Merge branch 'master' into dev/cenit/opencv4
cenit Jun 21, 2019
ac11141
fix ffmpeg on some architectures
cenit Jun 21, 2019
0eb5495
trigger rebuild of regressions on macOS
cenit Jun 21, 2019
cc99da4
[zxing-cpp] fix opencv 4.1 compat
cenit Jun 21, 2019
e83239d
[ogre] improve patching for static builds
cenit Jun 22, 2019
b2a3e40
[OpenCV] fixes for extra features
cenit Jun 23, 2019
95f1f31
[OpenCV] drastically reduce patchset
cenit Jun 27, 2019
82b1abf
[OpenCV] fix regression on linux
cenit Jun 27, 2019
cf08a4d
[OpenCV] fix regression on Windows
cenit Jun 28, 2019
50eaec0
Merge branch 'master' into dev/cenit/opencv4
cenit Jul 10, 2019
4c0b44e
Merge branch 'master' into dev/cenit/opencv4
cenit Jul 19, 2019
25af2ea
Merge branch 'master' into dev/cenit/opencv4
cenit Jul 24, 2019
a9491e5
[qt5] depends on qt5-activeqt only on windows
cenit Jul 24, 2019
810e8d5
update to v4.1.1
cenit Jul 26, 2019
6bd7239
Merge branch 'master' into dev/cenit/opencv4
cenit Jul 26, 2019
04cc403
[OpenCV] additional fixes for 4.1.1
cenit Jul 26, 2019
226e4df
[OpenCV] fix Eigen3 feature integration
cenit Jul 26, 2019
aac4bcb
[opencv] Fix compilation in UWP
vicroms Jul 26, 2019
f03a107
Merge branch 'dev/cenit/opencv4' of https:/cenit/vcpkg in…
vicroms Jul 26, 2019
5f524a4
[opencv] Fix merge conflicts
vicroms Jul 26, 2019
7d211f9
[ffmpeg] fix cmake module for osx
cenit Jul 27, 2019
429eb43
[OpenCV] add pre-caching of optflow cuda package
cenit Jul 29, 2019
8582cb7
[gdcm] properly fix #6863 instead of wrong #6901
cenit Jul 29, 2019
71c175d
Merge branch 'master' into dev/cenit/opencv4
cenit Jul 29, 2019
d560cd7
[OpenCV] fix OpenMP feature
cenit Jul 30, 2019
de10053
[opencv] Add missing GetModuleHandle() call guard for UWP
vicroms Jul 30, 2019
07e9d12
[freeimage] Do not depend on libwebp[all] on UWP
vicroms Jul 30, 2019
41314a4
[opencv] Set app container bit for UWP
vicroms Jul 30, 2019
5b1919c
[zxing-cpp] Fail with explicit message in UWP
vicroms Jul 30, 2019
ebdecef
[pthreads4w] fix target creation, missing dlls
cenit Aug 1, 2019
5500aff
[pthreads4w] bump CONTROL
cenit Aug 1, 2019
fc8e7ee
[opencv,zxing-cpp] Fix OpenCV Video IO module
vicroms Aug 1, 2019
afa44bc
[zxing-cpp] Revert unnecessary changes
vicroms Aug 1, 2019
cf227f5
Merge branch 'master' of https:/Microsoft/vcpkg into dev/…
vicroms Aug 2, 2019
986aaff
[opencv] Feature halide
vicroms Aug 2, 2019
41d250e
Fix regression in UWP
vicroms Aug 2, 2019
50af0c6
[ffmpeg] remove unnecessary patch pointing to old OpenCV version
cenit Aug 3, 2019
0cd7053
[opencv] remove versioning from windows dll filenames
cenit Aug 8, 2019
c956f05
[opencv] Move port to opencv4
vicroms Aug 8, 2019
96800f6
[opencv,opencv4] Make meta-package install OpenCV 4.1
vicroms Aug 8, 2019
8e2ba63
[opencv3] Rename old port opencv->opencv3
vicroms Aug 9, 2019
62ca7b8
Add failure messages when another OpenCV is already installed
vicroms Aug 9, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ports/ffmpeg/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: ffmpeg
Version: 4.1-8
Version: 4.1-9
Homepage: https://ffmpeg.org
Description: a library to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created.
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation. It is also highly portable: FFmpeg compiles, runs, and passes our testing infrastructure FATE across Linux, Mac OS X, Microsoft Windows, the BSDs, Solaris, etc. under a wide variety of build environments, machine architectures, and configurations.
Expand Down
15 changes: 13 additions & 2 deletions ports/ffmpeg/FindFFMPEG.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
include(${CMAKE_ROOT}/Modules/SelectLibraryConfigurations.cmake)
include(${CMAKE_ROOT}/Modules/CMakeFindDependencyMacro.cmake)

set(FFMPEG_VERSION "4.1")

find_dependency(Threads)
#list(APPEND FFMPEG_PLATFORM_DEPENDENT_LIBS Threads::Threads)
if(UNIX)
Expand Down Expand Up @@ -83,7 +85,7 @@ macro(FFMPEG_FIND_GENEX varname shortname headername)
set(FFMPEG_${varname}_FOUND 1)
list(APPEND FFMPEG_LIBRARY_DIRS ${FFMPEG_${varname}_LIBRARY_RELEASE_DIR} ${FFMPEG_${varname}_LIBRARY_DEBUG_DIR})
endif()
endmacro(FFMPEG_FIND)
endmacro(FFMPEG_FIND_GENEX)

if(WIN32)
if(NOT FFMPEG_${varname}_INCLUDE_DIRS)
Expand All @@ -92,8 +94,10 @@ if(WIN32)
if (FFMPEG_stdint_INCLUDE_DIRS)
set(STDINT_OK TRUE)
endif()
FFMPEG_FIND_GENEX(libzlib zlib zlib.h)
else()
set(STDINT_OK TRUE)
FFMPEG_FIND_GENEX(libzlib z zlib.h)
endif()

FFMPEG_FIND(libavcodec avcodec avcodec.h)
Expand All @@ -103,13 +107,20 @@ FFMPEG_FIND(libavformat avformat avformat.h)
FFMPEG_FIND(libavutil avutil avutil.h)
FFMPEG_FIND(libswresample swresample swresample.h)
FFMPEG_FIND(libswscale swscale swscale.h)
FFMPEG_FIND_GENEX(libzlib zlib zlib.h)

if (FFMPEG_libavcodec_FOUND AND FFMPEG_libavdevice_FOUND AND FFMPEG_libavfilter_FOUND AND FFMPEG_libavformat_FOUND AND FFMPEG_libavutil_FOUND AND FFMPEG_libswresample_FOUND AND FFMPEG_libswscale_FOUND AND FFMPEG_libzlib_FOUND AND STDINT_OK)
list(APPEND FFMPEG_INCLUDE_DIRS ${FFMPEG_libavformat_INCLUDE_DIRS} ${FFMPEG_libavdevice_INCLUDE_DIRS} ${FFMPEG_libavcodec_INCLUDE_DIRS} ${FFMPEG_libavutil_INCLUDE_DIRS} ${FFMPEG_libswscale_INCLUDE_DIRS} ${FFMPEG_stdint_INCLUDE_DIRS})
list(REMOVE_DUPLICATES FFMPEG_INCLUDE_DIRS)
list(REMOVE_DUPLICATES FFMPEG_LIBRARY_DIRS)

set(FFMPEG_libavformat_VERSION "${FFMPEG_VERSION}" CACHE STRING "")
set(FFMPEG_libavdevice_VERSION "${FFMPEG_VERSION}" CACHE STRING "")
set(FFMPEG_libavcodec_VERSION "${FFMPEG_VERSION}" CACHE STRING "")
set(FFMPEG_libavutil_VERSION "${FFMPEG_VERSION}" CACHE STRING "")
set(FFMPEG_libswscale_VERSION "${FFMPEG_VERSION}" CACHE STRING "")
set(FFMPEG_libavfilter_VERSION "${FFMPEG_VERSION}" CACHE STRING "")
set(FFMPEG_libswresample_VERSION "${FFMPEG_VERSION}" CACHE STRING "")

list(APPEND FFMPEG_LIBRARIES
${FFMPEG_libavformat_LIBRARY}
${FFMPEG_libavdevice_LIBRARY}
Expand Down
2 changes: 1 addition & 1 deletion ports/ogre/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: ogre
Version: 1.12.0-1
Version: 1.12.0-2
Build-Depends: freeimage, freetype, zlib, zziplib
Homepage: https:/OGRECave/ogre
Description: 3D Object-Oriented Graphics Rendering Engine
Expand Down
8 changes: 7 additions & 1 deletion ports/ogre/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
include(vcpkg_common_functions)

if(VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
message("${PORT} currently requires the following library from the system package manager:\n Xaw\n\nIt can be installed on Ubuntu systems via apt-get install libxaw7-dev")
endif()

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO OGRECave/ogre
Expand Down Expand Up @@ -92,7 +96,9 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()

if(NOT VCPKG_CMAKE_SYSTEM_NAME)
#Remove OgreMain*.lib from lib/ folder, because autolink would complain, since it defines a main symbol
#manual-link subfolder is here to the rescue!
if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "Release")
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/lib/manual-link)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
Expand Down
200 changes: 151 additions & 49 deletions ports/ogre/toolchain_fixes.patch
Original file line number Diff line number Diff line change
@@ -1,45 +1,88 @@
diff --git a/CMake/CMakeLists.txt b/CMake/CMakeLists.txt
index a7a3796..2e21403 100755
index a7a3796..7e41f57 100755
--- a/CMake/CMakeLists.txt
+++ b/CMake/CMakeLists.txt
@@ -13,10 +13,12 @@
@@ -13,13 +13,15 @@
# 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()
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)

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)

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}")
diff --git a/CMake/InstallResources.cmake b/CMake/InstallResources.cmake
index 783755e..79f7514 100644
index 783755e..bd7fd3d 100644
--- a/CMake/InstallResources.cmake
+++ b/CMake/InstallResources.cmake
@@ -208,10 +208,12 @@ endif ()
@@ -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 ()
# 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")
+ endif()
if(WIN32 OR APPLE)
set(OGRE_CMAKE_DIR "CMake")
else()
set(OGRE_CMAKE_DIR "${OGRE_LIB_DIRECTORY}/OGRE/cmake")
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
--- a/CMake/Packages/FindCg.cmake
Expand Down Expand Up @@ -131,29 +174,29 @@ index 7125895..f73c928 100644
add_parent_dir(HLSL2GLSL_INCLUDE_DIRS HLSL2GLSL_INCLUDE_DIR)
-
diff --git a/CMake/Packages/FindNVAPI.cmake b/CMake/Packages/FindNVAPI.cmake
index 95c70cd..17dabb8 100644
index 2b9deba..6d8fb37 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)
# 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)
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)
+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
--- a/CMake/Packages/FindPOCO.cmake
Expand Down Expand Up @@ -313,6 +356,66 @@ index e97951e..1c7cf00 100644

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
--- a/CMake/Utils/FindPkgMacros.cmake
Expand Down Expand Up @@ -349,7 +452,7 @@ index 374f84b..dc7066d 100644

# Generate debug names from given release names
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d2819f0..8b54b38 100644
index d2819f0..f40239f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -142,7 +142,7 @@ if (MSVC)
Expand All @@ -361,7 +464,7 @@ index d2819f0..8b54b38 100644
# 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,14 +274,9 @@ elseif(EMSCRIPTEN)
@@ -274,12 +274,8 @@ elseif(EMSCRIPTEN)
elseif (APPLE AND NOT APPLE_IOS)

set(XCODE_ATTRIBUTE_SDKROOT macosx)
Expand All @@ -372,11 +475,9 @@ index d2819f0..8b54b38 100644
- set(CMAKE_OSX_SYSROOT macosx)
- endif()

- # Make sure that the OpenGL render system is selected for non-iOS Apple builds
# Make sure that the OpenGL render system is selected for non-iOS Apple builds
set(OGRE_BUILD_RENDERSYSTEM_GLES2 FALSE)
endif ()

@@ -310,7 +305,7 @@ include(Dependencies)
@@ -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)
Expand All @@ -385,7 +486,7 @@ index d2819f0..8b54b38 100644
"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 +347,7 @@ cmake_dependent_option(OGRE_BUILD_LIBS_AS_FRAMEWORKS "Build frameworks for libra
@@ -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)
Expand Down Expand Up @@ -437,7 +538,7 @@ index bdb303d..e8031d1 100644
\ No newline at end of file
+)
diff --git a/OgreMain/CMakeLists.txt b/OgreMain/CMakeLists.txt
index 6ec4e34..666a736 100644
index 6ec4e34..2803a8a 100644
--- a/OgreMain/CMakeLists.txt
+++ b/OgreMain/CMakeLists.txt
@@ -188,21 +188,21 @@ if (WINDOWS_STORE OR WINDOWS_PHONE)
Expand Down Expand Up @@ -475,12 +576,13 @@ index 6ec4e34..666a736 100644
list(APPEND LIBRARIES "atomic")
else()
list(APPEND LIBRARIES "-latomic")
@@ -226,8 +226,6 @@ if (APPLE)
@@ -226,8 +226,7 @@ if (APPLE)
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
Expand Down
Loading