mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-14 09:06:11 +00:00
Use WIN32_LEAN_AND_MEAN on Windows
This makes Windows.h includes less headers that we don't want and will help with compilation.
This commit is contained in:
parent
275817a93a
commit
4db6327f78
@ -67,6 +67,8 @@ endif()
|
|||||||
if (WIN32)
|
if (WIN32)
|
||||||
# Define NOMINMAX to prevent conflicts between std::min/max and the min/max macros in WinDef.h
|
# Define NOMINMAX to prevent conflicts between std::min/max and the min/max macros in WinDef.h
|
||||||
list(APPEND NXT_DEFS "NOMINMAX")
|
list(APPEND NXT_DEFS "NOMINMAX")
|
||||||
|
# Avoid Windows.h including a lot of headers
|
||||||
|
list(APPEND NXT_DEFS "WIN32_LEAN_AND_MEAN")
|
||||||
# Remove compile error where the mock NXT creates too many sections for the old obj format.
|
# Remove compile error where the mock NXT creates too many sections for the old obj format.
|
||||||
list(APPEND NXT_FLAGS "/bigobj")
|
list(APPEND NXT_FLAGS "/bigobj")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user