MarkSchofield / WindowsToolchain

A repository containing a CMake toolchain for using MSVC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows.MSVC.toolchain.cmake fails try-compile when VS2019 isn't installed

MarkSchofield opened this issue · comments

With only VS2022 installed, Windows.MSVC.toolchain.cmake fails in try-compile - the variables to configure how VS is found aren't marshalled into the try-compile, so the toolchain defaults CMAKE_VS_VERSION_RANGE to "[16.0,17.0)", VS isn't found and FATAL_ERRORs are logged. The Toolchain should probably skip the unnecessary work in try-compile, since the compiler should already have been found.