mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 11:35:38 -04:00
CMakeLists.txt: Fix ENDIF() for the MSVC version check for C99.
CMAKE_SYSTEM_VERSION returns 10.0 on my Win7 VM because I'm manually specifying that version. On Win10 with VS2022, it returns 10.0.22621. On both systems, CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION returns 10.0.22621.0, regardless of whether or not CMAKE_SYSTEM_VERSION is manually set.
This commit is contained in:
parent
7398a1d32a
commit
840844930d
@ -110,7 +110,7 @@ IF(MSVC AND CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION VERSION_LESS 10.0.18362.0)
|
||||
# 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 AND CMAKE_SYSTEM_VERSION VERSION_LESS 10.0.18362)
|
||||
ENDIF(MSVC AND CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION VERSION_LESS 10.0.18362.0)
|
||||
|
||||
# Set default build options.
|
||||
INCLUDE(cmake/options.cmake)
|
||||
|
Loading…
Reference in New Issue
Block a user