Commit: d49dec896aaae5e2cdb5f2e2926f3bd010f4a0fe
Author: Ray Molenkamp
Date:   Wed Nov 9 23:09:56 2022 +0100
Branches: master
https://developer.blender.org/rBd49dec896aaae5e2cdb5f2e2926f3bd010f4a0fe

Attempt to fix build error on Windows

Was failing since 1efc94bb2f7b, probably because some include uses
`std::min()`/`std::max()` which messes with the windows min/max defines.

===================================================================

M       source/blender/editors/space_file/CMakeLists.txt

===================================================================

diff --git a/source/blender/editors/space_file/CMakeLists.txt 
b/source/blender/editors/space_file/CMakeLists.txt
index 688aa846c30..76564f38da8 100644
--- a/source/blender/editors/space_file/CMakeLists.txt
+++ b/source/blender/editors/space_file/CMakeLists.txt
@@ -46,6 +46,10 @@ set(LIB
   bf_blenkernel
 )
 
+if(WIN32)
+  add_definitions(-DNOMINMAX)
+endif()
+
 if(WITH_HEADLESS)
   add_definitions(-DWITH_HEADLESS)
 else()

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to