From 5d2ed0d0dfed076d530bc8efdab4deb74f404aca Mon Sep 17 00:00:00 2001 From: Martin Beseda <martinbeseda@seznam.cz> Date: Thu, 13 Sep 2018 18:38:50 +0200 Subject: [PATCH] Trying to disable Boost autolinking on Windows --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b750bca5..5a8515ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,8 @@ message("Using CMake ${CMAKE_VERSION}") #TODO rewrite to use add_compile_definitions if(WIN32) - add_compile_options("/D BOOST_ALL_NO_LIB /D NOMINMAX") + add_compile_options("/D BOOST_ALL_NO_LIB") + add_compile_options("/D NOMINMAX") else() add_compile_options("-DBOOST_TEST_DYN_LINK") endif() -- GitLab