diff options
author | Ray Molenkamp <github@lazydodo.com> | 2022-11-10 01:09:56 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-11-10 01:09:56 +0300 |
commit | d49dec896aaae5e2cdb5f2e2926f3bd010f4a0fe (patch) | |
tree | c8001cc10b41146e8acbef484a6bb0566f44545b | |
parent | 32757b2429a0939dd68ddb79824ea7fd2cad1cd4 (diff) |
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.
-rw-r--r-- | source/blender/editors/space_file/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
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() |