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
Currently, the incorrect toolset 'host=amd64' is set (#2790) - as well as correcting 'amd64' to 'x64', ClangCL should be specified - e.g. toolset: "ClangCL,host=x64"
This makes CMAKE_CXX_COMPILER_ID and CMAKE_CXX_SIMULATE_ID bepopulated correctly ('Clang' and 'MSVC' respectively, and the MSVC variable remains correctly set to 1)
Setting CMAKE_CXX_COMPILER_ID and CMAKE_CXX_SIMULATE_ID is useful to detect ClangCL within CMake; this is occasionally required when MSVC builds require a flag like /await:strict which errors with clang-cl.
The text was updated successfully, but these errors were encountered:
... or specify CMAKE_CXX_COMPILER by hand in the CMakeCache.txt, when using the visual studio generators, cmake will always use the Visual-Studio-bundled clang-cl instead of the one I tell it to.
... or specify CMAKE_CXX_COMPILER by hand in the CMakeCache.txt, when using the visual studio generators, cmake will always use the Visual-Studio-bundled clang-cl instead of the one I tell it to.
I opened a separate issue for this feedback since I already have a PR open for the original comment.
Brief Issue Summary
Currently, the incorrect toolset 'host=amd64' is set (#2790) - as well as correcting 'amd64' to 'x64',
ClangCL
should be specified - e.g.toolset: "ClangCL,host=x64"
This makes
CMAKE_CXX_COMPILER_ID
andCMAKE_CXX_SIMULATE_ID
bepopulated correctly ('Clang' and 'MSVC' respectively, and theMSVC
variable remains correctly set to 1)For example:
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
Setting CMAKE_CXX_COMPILER_ID and CMAKE_CXX_SIMULATE_ID is useful to detect ClangCL within CMake; this is occasionally required when MSVC builds require a flag like
/await:strict
which errors with clang-cl.The text was updated successfully, but these errors were encountered: