[Openxr-loader] Fix fatal error C1189 (#7376)

This commit is contained in:
Cheney Wang 2019-07-25 01:33:01 +08:00 committed by Phil Christensen
parent 1b1911a070
commit facd998c44
3 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/loader/CMakeLists.txt b/src/loader/CMakeLists.txt
index 92985a5..b265091 100644
--- a/src/loader/CMakeLists.txt
+++ b/src/loader/CMakeLists.txt
@@ -134,7 +134,7 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
endforeach()
target_link_libraries(${LOADER_NAME} shlwapi)
- target_compile_options(${LOADER_NAME} PRIVATE)
+ target_compile_options(${LOADER_NAME} PRIVATE /std:c++17)
generate_export_header(${LOADER_NAME})
# set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS false)

View File

@ -1,5 +1,5 @@
Source: openxr-loader
Version: 0.90.1
Version: 0.90.1-1
Description: Khronos API for abstracting VR/MR/AR hardware
Feature: vulkan

View File

@ -22,6 +22,7 @@ vcpkg_from_github(
0002-fix-linux-pkgconfig-dependency.patch
# Python < 3.6 doesn't allow a WindowsPath object to act as a pathlike in os.path functions
0003-windows-path-python-fix.patch
0004-fix-fatal-errorC1189.patch
)
# Weird behavior inside the OpenXR loader. On Windows they force shared libraries to use static crt, and