mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 11:35:38 -04:00
CMakeLists.txt: FIXME: 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\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\um\oaidl.h(473,17): error C2059: syntax error: '/' Force C99 when compiling with MSVC for now.
This commit is contained in:
parent
35a826e74e
commit
d7c6362b50
@ -72,6 +72,15 @@ ELSE()
|
||||
SET(CMAKE_C_STANDARD 11)
|
||||
SET(CMAKE_CXX_STANDARD 14)
|
||||
ENDIF()
|
||||
IF(MSVC)
|
||||
# FIXME: 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\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\um\oaidl.h(473,17): error C2059: syntax error: '/'
|
||||
# Reference: https://github.com/microsoft/vcpkg/issues/15035
|
||||
SET(CMAKE_C_STANDARD 99)
|
||||
ENDIF(MSVC)
|
||||
|
||||
# Set default build options.
|
||||
INCLUDE(cmake/options.cmake)
|
||||
|
Loading…
Reference in New Issue
Block a user