Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2022-09-17 18:36:14 +0300
committerRay Molenkamp <github@lazydodo.com>2022-09-17 18:36:14 +0300
commit114815816b3f2bb8bc8e2680c93793838db66825 (patch)
tree597a0e81b61ea2f246082e117df00a5f91daadc0
parent44272fdd23e3b4d023d9dfa91401a33bcef427e7 (diff)
Fix: lite build on windows
writefile.cc includes BLI_winstuff.h which includes Windows.h which supplies definitions of min/max that conflict with the c++ headers previously windows.h was only included when TBB was enabled, the inclusion of BLI_winstuff.h now makes this define mandatory for all configurations
-rw-r--r--source/blender/blenloader/CMakeLists.txt9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/blenloader/CMakeLists.txt b/source/blender/blenloader/CMakeLists.txt
index f99fb21e994..bf99ca2cd9a 100644
--- a/source/blender/blenloader/CMakeLists.txt
+++ b/source/blender/blenloader/CMakeLists.txt
@@ -88,11 +88,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.
- add_definitions(-DNOMINMAX)
- endif()
+endif()
+
+if(WIN32)
+ add_definitions(-DNOMINMAX)
endif()
blender_add_lib(bf_blenloader "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")