mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Buildsystem: Fix finding VS 2019 compiled boost libs
This commit is contained in:
@@ -384,7 +384,9 @@ function(_Boost_GUESS_COMPILER_PREFIX _ret)
|
||||
set (_boost_COMPILER "-il")
|
||||
endif()
|
||||
elseif("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC")
|
||||
if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.10)
|
||||
if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.20)
|
||||
set(_boost_COMPILER "-vc142;-vc141")
|
||||
elseif (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.10)
|
||||
set(_boost_COMPILER "-vc141;-vc140")
|
||||
elseif (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19)
|
||||
set(_boost_COMPILER "-vc140")
|
||||
|
||||
@@ -18,9 +18,15 @@ if(WIN32)
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.10)
|
||||
set(BOOST_LIBRARYDIR ${BOOST_ROOT}/lib${PLATFORM}-msvc-14.0)
|
||||
else()
|
||||
list(APPEND BOOST_LIBRARYDIR
|
||||
${BOOST_ROOT}/lib${PLATFORM}-msvc-14.1
|
||||
${BOOST_ROOT}/lib${PLATFORM}-msvc-14.0 )
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.20)
|
||||
list(APPEND BOOST_LIBRARYDIR
|
||||
${BOOST_ROOT}/lib${PLATFORM}-msvc-14.1
|
||||
${BOOST_ROOT}/lib${PLATFORM}-msvc-14.0 )
|
||||
else()
|
||||
list(APPEND BOOST_LIBRARYDIR
|
||||
${BOOST_ROOT}/lib${PLATFORM}-msvc-14.2
|
||||
${BOOST_ROOT}/lib${PLATFORM}-msvc-14.1 )
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
else()
|
||||
|
||||
Reference in New Issue
Block a user