mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 15:20:05 +00:00
NOMINMAX should be defined for the entire project
This commit is contained in:
parent
ff7f70a5b7
commit
dd1490a143
7 changed files with 11 additions and 9 deletions
|
|
@ -462,6 +462,12 @@ target_compile_options(supercell-wx PRIVATE
|
|||
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Wpedantic -Werror>
|
||||
)
|
||||
|
||||
if (MSVC)
|
||||
# Don't include Windows macros
|
||||
target_compile_options(scwx-qt PRIVATE /D "NOMINMAX")
|
||||
target_compile_options(supercell-wx PRIVATE /D "NOMINMAX")
|
||||
endif()
|
||||
|
||||
# Address Sanitizer options
|
||||
if (SCWX_ADDRESS_SANITIZER)
|
||||
target_compile_options(scwx-qt PRIVATE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue