From 0353a616da079f5a948b0f7ef874928d236f6bc4 Mon Sep 17 00:00:00 2001 From: Tobias Knopff <t.knopff@fz-juelich.de> Date: Mon, 11 Oct 2021 14:57:21 +0200 Subject: [PATCH] Fix problems with msvc and boost bimap --- cmake/BornAgain/Dependences.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/BornAgain/Dependences.cmake b/cmake/BornAgain/Dependences.cmake index 849b6c9abaf..a32b0a8749e 100644 --- a/cmake/BornAgain/Dependences.cmake +++ b/cmake/BornAgain/Dependences.cmake @@ -55,6 +55,8 @@ set(Boost_USE_MULTITHREADED ON) set(Boost_USE_STATIC_RUNTIME OFF) add_definitions(-DBOOST_ALL_DYN_LINK) # line is needed for MSVC add_definitions(-DBOOST_UUID_FORCE_AUTO_LINK) # line is needed to link bcrypt for MSVC +# amends problems with bimap and MSVC, serialization of bimap is currently not needed +add_definitions(-DBOOST_BIMAP_DISABLE_SERIALIZATION) # Boost component libraries (do not list headers here) set(boost_libraries_required iostreams program_options) -- GitLab