You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I add 'VCToolsInstallDir' to MSVC_ENVIRONMENT_VARIABLES array in \.vscode\extensions\ms-vscode.cmake-tools-1.3.0\dist\main.js(or src/kit.ts) of extension.
and reconfigure my project. It works as expected. The cmake variable ${MSVC_VERSION} is correct.
+1
Just hit the same issue where Clang can't find the MSVC toolkit correctly.
Traced it down to this after many hours.
Is there any specific reason the VCToolsInstallDir is omitted from MSVC_ENVIRONMENT_VARIABLES ? Seems like someone generated this a while ago and it never got updated.
Clang uses VCToolsInstallDir to find the location of the toolkit.
See https://clang.llvm.org/doxygen/MSVC_8cpp_source.html -> findVCToolChainViaEnvironment()
Oh, just to be clear - in my case this doesn't simply mess up the MSVC_VERSION.
It completely fails to compile anything because the include/lib paths are set to non-existing locations.
tklajnscek
added a commit
to tklajnscek/vscode-cmake-tools
that referenced
this issue
Aug 30, 2021
Brief Issue Summary
When I configure my project, the cmake variable
${MSVC_VERSION}
output incorrectly.Here is my CMakeLists.txt
Expected:
Apparent Behavior:
Other Notes/Information
When I add
'VCToolsInstallDir'
toMSVC_ENVIRONMENT_VARIABLES
array in\.vscode\extensions\ms-vscode.cmake-tools-1.3.0\dist\main.js
(or src/kit.ts) of extension.and reconfigure my project. It works as expected. The cmake variable
${MSVC_VERSION}
is correct.Platform and Versions
The text was updated successfully, but these errors were encountered: