Attempt to fix build error on Windows

Was failing since 1efc94bb2f, probably because some include uses
`std::min()`/`std::max()` which messes with the windows min/max defines.
This commit is contained in:
Ray molenkamp 2022-11-09 23:09:56 +01:00 committed by Julian Eisel
parent 32757b2429
commit d49dec896a
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@ set(LIB
bf_blenkernel
)
if(WIN32)
add_definitions(-DNOMINMAX)
endif()
if(WITH_HEADLESS)
add_definitions(-DWITH_HEADLESS)
else()