fix windows build

This commit is contained in:
Eric Wild 2020-10-31 23:47:59 +01:00
parent bd668e97b6
commit 90c3d5b555
1 changed files with 5 additions and 0 deletions

View File

@ -116,6 +116,11 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
add_definitions(/arch:AVX)
add_definitions(-DUSE_AVX)
endif()
# boost feels like using lib pragmas to link to libs,
# but the boost libs might not even be in the (default) lib search path
add_definitions(-DBOOST_ALL_NO_LIB)
# macro turns std::min into errors...
add_definitions(-DNOMINMAX)
endif()
########################################################################