-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Build] Unable to specify msvc_toolset during Windows build #18014
Comments
I tried with
Alternatively you should be able to set the toolset in the environment using the vcvars_ver parameter of vcvarsall.bat prior to running build.bat.
|
This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs. If further support is needed, please provide an update and/or more details. |
This issue has been automatically closed due to inactivity. Please reactivate if further support is needed. |
Now I know, it is a compatibility issue between cmake and VS. See #20993 |
Describe the issue
I have installed VS2022 with both v143 (14.37) and v142 (14.29). However, CMake config will fail when passing
--msvc_toolset
to specify v142 toolset.Urgency
No response
Target platform
Windows
Build script
.\build.bat --msvc_toolset 14.29
Error / output
....
-- Detecting C compiler ABI info
CMake Error at D:/source/cognition/onnxruntime/build/Windows/Debug/CMakeFiles/CMakeScratch/TryCompile-farpjc/CMakeLists.txt:4 (project):
Generator
given toolset and version specification
contains an invalid version specification.
Visual Studio Version
2022
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered: