Define NOMINMAX on Windows so windows.h doesn't break std::max
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
dd898c2a0c
commit
d53d176125
1 file changed
+4
@@ -128,6 +128,10 @@ set(CORE_INCLUDE_DIRS
|
||||
add_library(anm2ed_core STATIC ${CORE_SRC} ${TINYXML2_SRC} ${IMGUI_CORE_SRC})
|
||||
target_include_directories(anm2ed_core PUBLIC ${CORE_INCLUDE_DIRS})
|
||||
target_compile_definitions(anm2ed_core PUBLIC IMGUI_DISABLE_OBSOLETE_FUNCTIONS IMGUI_DEBUG_PARANOID IMGUI_ENABLE_DOCKING)
|
||||
# windows.h otherwise defines min/max macros that break std::min/std::max.
|
||||
if(WIN32)
|
||||
target_compile_definitions(anm2ed_core PUBLIC NOMINMAX)
|
||||
endif()
|
||||
if(NOT MSVC)
|
||||
target_compile_options(anm2ed_core PRIVATE -Wall -Wextra -Wpedantic)
|
||||
endif()
|
||||
|
||||
Reference in new issue
Block a user