aboutsummaryrefslogtreecommitdiff
path: root/ports/openexr
diff options
context:
space:
mode:
Diffstat (limited to 'ports/openexr')
-rw-r--r--ports/openexr/fix_clang_not_setting_modern_cplusplus.patch13
-rw-r--r--ports/openexr/portfile.cmake6
2 files changed, 17 insertions, 2 deletions
diff --git a/ports/openexr/fix_clang_not_setting_modern_cplusplus.patch b/ports/openexr/fix_clang_not_setting_modern_cplusplus.patch
new file mode 100644
index 000000000..05e86b50c
--- /dev/null
+++ b/ports/openexr/fix_clang_not_setting_modern_cplusplus.patch
@@ -0,0 +1,13 @@
+diff --git a/IlmBase/CMakeLists.txt b/IlmBase/CMakeLists.txt
+index e13c768..95942c8 100644
+--- a/IlmBase/CMakeLists.txt
++++ b/IlmBase/CMakeLists.txt
+@@ -110,7 +110,7 @@ ENDIF ()
+
+ IF (OPENEXR_FORCE_CXX03)
+ FILE ( APPEND ${ILMBASE_TMP_CONFIG} "#define ILMBASE_FORCE_CXX03 1\n" )
+-ELSEIF (NOT WIN32)
++ELSEIF (NOT WIN32 AND NOT APPLE)
+ # really only care about c++11 right now for the threading bits, but this can be changed to 14
+ # when needed...
+ # Note that the __cplusplus check is not valid under MSVC
diff --git a/ports/openexr/portfile.cmake b/ports/openexr/portfile.cmake
index 256a133b4..e3bfc9592 100644
--- a/ports/openexr/portfile.cmake
+++ b/ports/openexr/portfile.cmake
@@ -13,7 +13,9 @@ vcpkg_from_github(
REF v${OPENEXR_VERSION}
SHA512 ${OPENEXR_HASH}
HEAD_REF master
- PATCHES "fix_install_ilmimf.patch"
+ PATCHES
+ fix_clang_not_setting_modern_cplusplus.patch
+ fix_install_ilmimf.patch
)
vcpkg_configure_cmake(SOURCE_PATH ${SOURCE_PATH}
@@ -32,7 +34,7 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
# NOTE: Only use ".exe" extension on Windows executables.
# Is there a cleaner way to do this?
-if(WIN32)
+if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
set(EXECUTABLE_SUFFIX ".exe")
else()
set(EXECUTABLE_SUFFIX "")