boostorg / boost_install

8 stars 32 forks source link

BoostDetectToolset.cmake needs to be updated to support detection of vc143 toolset with MSVC 2022 #59

Closed adnsv closed 2 years ago

adnsv commented 2 years ago

When calling BoostDetectToolset.cmake using MSVC 2022 compilers, BOOST_DETECTED_TOOLSET contains an empty string.

to fix: around line 92 in BoostDetectToolset.cmake: please add a couple lines as shown below:

if((MSVC_VERSION GREATER 1929) AND (MSVC_VERSION LESS 1940))
    set(BOOST_DETECTED_TOOLSET "vc143")
elseif((MSVC_VERSION GREATER 1919) AND (MSVC_VERSION LESS 1930))
    set(BOOST_DETECTED_TOOLSET "vc142")
else ...
pdimov commented 2 years ago

Marshall, please don't transfer my issues to wrong repositories.

mclow commented 2 years ago

Sorry, I thought that was where it belonged.

pdimov commented 2 years ago

It was already submitted against the correct repo, boostorg/boost_install, which I maintain.