Fix: MSVC build error without TBB

windows.h once more providing min/max macro's when you least want them.
This commit is contained in:
Ray Molenkamp 2022-11-26 11:44:08 -07:00
parent 4ecc7cf14a
commit 828525b268
1 changed files with 3 additions and 4 deletions

View File

@ -101,11 +101,10 @@ if(WITH_TBB)
${TBB_INCLUDE_DIRS}
)
add_definitions(-DWITH_TBB)
if(WIN32)
# TBB includes Windows.h which will define min/max macros
# that will collide with the stl versions.
endif()
if(WIN32)
add_definitions(-DNOMINMAX)
endif()
endif()
blender_add_lib(bf_editor_sculpt_paint "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")