mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-19 03:55:43 -04:00
CMakeLists.txt: Only disable C99 if using MSVC with a Windows SDK older than 10.0.18362.0.
This commit is contained in:
parent
af0e29f7eb
commit
69c2083baf
@ -102,15 +102,15 @@ ELSE()
|
|||||||
SET(CMAKE_C_STANDARD 11)
|
SET(CMAKE_C_STANDARD 11)
|
||||||
SET(CMAKE_CXX_STANDARD 14)
|
SET(CMAKE_CXX_STANDARD 14)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
IF(MSVC)
|
IF(MSVC AND CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION VERSION_LESS 10.0.18362.0)
|
||||||
# FIXME: Windows SDK prior to 10.0.18362.0 has issues when compiling as either C11 or C17.
|
# Windows SDK prior to 10.0.18362.0 has issues when compiling as either C11 or C17.
|
||||||
# C:\Program Files (x86)\Windows Kits\8.1\Include\um\winbase.h(8816,5): warning C5105: macro expansion producing 'defined' has undefined behavior
|
# C:\Program Files (x86)\Windows Kits\8.1\Include\um\winbase.h(8816,5): warning C5105: macro expansion producing 'defined' has undefined behavior
|
||||||
# C:\Program Files (x86)\Windows Kits\8.1\Include\um\oaidl.h(473,17): warning C5103: pasting '/' and '/' does not result in a valid preprocessing token
|
# C:\Program Files (x86)\Windows Kits\8.1\Include\um\oaidl.h(473,17): warning C5103: pasting '/' and '/' does not result in a valid preprocessing token
|
||||||
# C:\Program Files (x86)\Windows Kits\8.1\Include\shared\wtypes.h(742,1): message : in expansion of macro '_VARIANT_BOOL'
|
# C:\Program Files (x86)\Windows Kits\8.1\Include\shared\wtypes.h(742,1): message : in expansion of macro '_VARIANT_BOOL'
|
||||||
# C:\Program Files (x86)\Windows Kits\8.1\Include\um\oaidl.h(473,17): error C2059: syntax error: '/'
|
# C:\Program Files (x86)\Windows Kits\8.1\Include\um\oaidl.h(473,17): error C2059: syntax error: '/'
|
||||||
# Reference: https://github.com/microsoft/vcpkg/issues/15035
|
# Reference: https://github.com/microsoft/vcpkg/issues/15035
|
||||||
SET(CMAKE_C_STANDARD 99)
|
SET(CMAKE_C_STANDARD 99)
|
||||||
ENDIF(MSVC)
|
ENDIF(MSVC AND CMAKE_SYSTEM_VERSION VERSION_LESS 10.0.18362)
|
||||||
|
|
||||||
# Set default build options.
|
# Set default build options.
|
||||||
INCLUDE(cmake/options.cmake)
|
INCLUDE(cmake/options.cmake)
|
||||||
|
Loading…
Reference in New Issue
Block a user