mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 10:22:52 +01:00
cmake: explicitly require minimum version of Windows
This commit is contained in:
parent
b10c36e747
commit
c4fd61bd5b
@ -39,6 +39,18 @@ if(MINGW)
|
||||
)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
# Required minimum version of Windows = Vista
|
||||
set(RW_NTDDI_VISTA 0x06000000)
|
||||
set(RW_WINVER 0x0600)
|
||||
target_compile_definitions(rw_interface
|
||||
INTERFACE
|
||||
"NTDDI_VERSION=${RW_NTDDI_VISTA}"
|
||||
"WINVER=${RW_WINVER}"
|
||||
"_WIN32_WINNT=${RW_WINVER}"
|
||||
)
|
||||
endif()
|
||||
|
||||
target_compile_definitions(rw_interface
|
||||
INTERFACE
|
||||
"$<$<CONFIG:Debug>:RW_DEBUG>"
|
||||
|
Loading…
Reference in New Issue
Block a user