cmake: Set build target to Windows 10

This commit is contained in:
Marshall Greenblatt 2023-01-05 12:42:43 -05:00
parent f3c7d2c89a
commit 05104b07e0
2 changed files with 7 additions and 2 deletions

View File

@ -54,7 +54,7 @@
# recommended. # recommended.
# #
# - Windows requirements: # - Windows requirements:
# Visual Studio 2019 or newer building on Windows 7 or newer. Windows 10 # Visual Studio 2019 or newer building on Windows 10 or newer. Windows 10
# 64-bit is recommended. Newer versions will likely also work but may not have # 64-bit is recommended. Newer versions will likely also work but may not have
# been tested. # been tested.
# #

View File

@ -443,7 +443,12 @@ if(OS_WINDOWS)
list(APPEND CEF_COMPILER_DEFINES list(APPEND CEF_COMPILER_DEFINES
WIN32 _WIN32 _WINDOWS # Windows platform WIN32 _WIN32 _WINDOWS # Windows platform
UNICODE _UNICODE # Unicode build UNICODE _UNICODE # Unicode build
WINVER=0x0601 _WIN32_WINNT=0x601 # Targeting Windows 7 # Targeting Windows 10. We can't say `=_WIN32_WINNT_WIN10` here because
# some files do `#if WINVER < 0x0600` without including windows.h before,
# and then _WIN32_WINNT_WIN10 isn't yet known to be 0x0A00.
WINVER=0x0A00
_WIN32_WINNT=0x0A00
NTDDI_VERSION=NTDDI_WIN10_FE
NOMINMAX # Use the standard's templated min/max NOMINMAX # Use the standard's templated min/max
WIN32_LEAN_AND_MEAN # Exclude less common API declarations WIN32_LEAN_AND_MEAN # Exclude less common API declarations
_HAS_EXCEPTIONS=0 # Disable exceptions _HAS_EXCEPTIONS=0 # Disable exceptions