mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 08:00:06 +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
|
|
@ -248,6 +248,11 @@ target_compile_options(wxdata PRIVATE
|
|||
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Wpedantic -Werror>
|
||||
)
|
||||
|
||||
if (MSVC)
|
||||
# Don't include Windows macros
|
||||
target_compile_options(wxdata PRIVATE /D "NOMINMAX")
|
||||
endif()
|
||||
|
||||
if (MSVC)
|
||||
# Produce PDB file for debug
|
||||
target_compile_options(wxdata PRIVATE "$<$<CONFIG:Release>:/Zi>")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue