File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,6 +143,14 @@ IF(WIN32 AND ("$ENV{CONDA_BUILD}" STREQUAL ""))
143143 SET (Boost_USE_STATIC_LIBS ON )
144144 SET (Boost_USE_STATIC_RUNTIME ON )
145145 SET (Boost_USE_MULTITHREADED ON )
146+ # Disable Boost's autolinking as the libraries to be linked to are supplied
147+ # already by CMake, and wrong libraries would be asked for when code is
148+ # compiled with a toolset different from default.
149+ if (MSVC )
150+ ADD_DEFINITIONS (-DBOOST_ALL_NO_LIB )
151+ # Necessary for boost version >= 1.67
152+ SET (BCRYPT_LIBRARIES "bcrypt.lib" )
153+ ENDIF ()
146154ELSE ()
147155 # Disable Boost's autolinking as the libraries to be linked to are supplied
148156 # already by CMake, and it's going to conflict if there are multiple, as is
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ cd "%DEPS_DIR%"
172172:: by modifying this file and using goto.
173173:Boost
174174:: NOTE Boost < 1.64 doesn't work without tricks if the user has only VS 2017 installed and no earlier versions.
175- set BOOST_VERSION = 1.71 .0
175+ set BOOST_VERSION = 1.74 .0
176176:: Version string with underscores instead of dots.
177177set BOOST_VER = %BOOST_VERSION:. =_ %
178178:: DEPENDENCY_NAME is used for logging and DEPENDENCY_DIR for saving from some redundant typing
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ IF NOT EXIST ..\%BUILD_DIR%. mkdir ..\%BUILD_DIR%
5959pushd ..\%BUILD_DIR%
6060
6161:: tfk: todo remove duplication
62- set BOOST_VERSION = 1.71 .0
62+ set BOOST_VERSION = 1.74 .0
6363set BOOST_VER = %BOOST_VERSION:. =_ %
6464
6565set BOOST_ROOT = %DEPS_DIR% \boost_%BOOST_VER%
You can’t perform that action at this time.
0 commit comments