aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wild <ewild@sysmocom.de>2020-10-31 23:47:59 +0100
committerEric Wild <ewild@sysmocom.de>2020-10-31 23:56:26 +0100
commit90c3d5b555aa87a8ed9f480a743621c62c2e6f34 (patch)
tree0cc09c1d81bc1ef16303df2adf23e305a0423ec9
parentbd668e97b632e68a131df738cc5aee49fc9df3e4 (diff)
fix windows build
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9679f88..9f8f0af 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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()
########################################################################