InstallRequiredSystemLibraries does not find MSVC_REDIST_DIR for msvc 16.9
Hi,
With msvc 16.9.1, in a x64 console, on windows 10, the module InstallRequiredSystemLibraries of cmake 3.19.7 does not find the folder MSVC_REDIST_DIR and then fails to install the distributable dlls:
CMake Warning at D:/dev/tool/cmake/cmake-3.19/share/cmake-3.19/Modules/InstallRequiredSystemLibraries.cmake:596 (message):
system runtime library file does not exist:
'MSVC_REDIST_DIR-NOTFOUND/x64/Microsoft.VC142.CRT/msvcp140.dll'
Call Stack (most recent call first):
cmake/package/package.cmake:21 (include)
CMakeLists.txt:146 (include)
It looks like the call
cmake_host_system_information(RESULT _vs_dir QUERY VS_${_vs_ver}_DIR) # undocumented
in InstallRequiredSystemLibraries.cmake does not return any result.
Simon
Edited by Brad King