-
Notifications
You must be signed in to change notification settings - Fork 450
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
Failed to generate projects for older Visual Studio #1352
Comments
Fixed with #1481 |
I meet the same question with new CMake tool VSCode output
Platform and Versions
|
@magicdmer, thank you for letting us know that you still see this symptom. We are ready to reactivate this report and investigate it again, but before let's make sure. Here are a few cleanup steps that you can do before verifying again:
|
@andreeis I had already removed toolset from cmake-tools-kits.json and not generated again |
@andreeis I am experiencing the same issue with visual studio code 1.57.1 and the CMake Tools extension's version 1.7.3. I see your fix in the release notes. Therefore there is certainly something I am doing wrong. Here's my [
{
"name": "GCC 9.2.0",
"compilers": {
"C": "C:\\MinGW\\bin\\gcc.exe",
"CXX": "C:\\MinGW\\bin\\g++.exe"
},
"preferredGenerator": {
"name": "MinGW Makefiles"
},
"environmentVariables": {
"CMT_MINGW_PATH": "C:\\MinGW\\bin"
}
},
{
"name": "GCC 9.2.0 mingw32",
"compilers": {
"C": "C:\\MinGW\\bin\\mingw32-gcc.exe",
"CXX": "C:\\MinGW\\bin\\mingw32-g++.exe"
},
"preferredGenerator": {
"name": "MinGW Makefiles"
},
"environmentVariables": {
"CMT_MINGW_PATH": "C:\\MinGW\\bin"
}
},
{
"name": "GCC for mingw32 9.2.0",
"compilers": {
"C": "C:\\MinGW\\bin\\mingw32-gcc.exe",
"CXX": "C:\\MinGW\\bin\\mingw32-g++.exe"
},
"preferredGenerator": {
"name": "MinGW Makefiles"
},
"environmentVariables": {
"CMT_MINGW_PATH": "C:\\MinGW\\bin"
}
},
{
"name": "Visual Studio Professional 2019 Release - amd64",
"visualStudio": "33a40df0",
"visualStudioArchitecture": "x64",
"preferredGenerator": {
"name": "Visual Studio 16 2019",
"platform": "x64",
"toolset": "host=x64"
}
},
{
"name": "Visual Studio Professional 2019 Release - amd64_x86",
"visualStudio": "33a40df0",
"visualStudioArchitecture": "x64",
"preferredGenerator": {
"name": "Visual Studio 16 2019",
"platform": "win32",
"toolset": "host=x64"
}
},
{
"name": "Visual Studio Professional 2019 Release - x86",
"visualStudio": "33a40df0",
"visualStudioArchitecture": "x86",
"preferredGenerator": {
"name": "Visual Studio 16 2019",
"platform": "win32",
"toolset": "host=x86"
}
},
{
"name": "Visual Studio Professional 2019 Release - x86_amd64",
"visualStudio": "33a40df0",
"visualStudioArchitecture": "x86",
"preferredGenerator": {
"name": "Visual Studio 16 2019",
"platform": "x64",
"toolset": "host=x86"
}
},
{
"name": "VisualStudio.10.0 - amd64",
"visualStudio": "VisualStudio.10.0",
"visualStudioArchitecture": "x64",
"preferredGenerator": {
"name": "Visual Studio 10 2010",
"platform": "x64"
}
},
{
"name": "VisualStudio.10.0 - x86",
"visualStudio": "VisualStudio.10.0",
"visualStudioArchitecture": "x86",
"preferredGenerator": {
"name": "Visual Studio 10 2010",
"platform": "win32"
}
},
{
"name": "VisualStudio.10.0 - x86_amd64",
"visualStudio": "VisualStudio.10.0",
"visualStudioArchitecture": "x86",
"preferredGenerator": {
"name": "Visual Studio 10 2010",
"platform": "x64"
}
}
] That is what I get after a |
@zadigus, it is possible that we were off by 1 in a VS version check. This is a different problem than the original entry in this GitHub issue so I am opening a new report for your case. We don't have time to address this immediately but we are welcoming PRs from the community. The fix would be super easy if anyone has time to properly test it with more VS installations, especially including older ones. |
I have the same issue with Visual Studio 2017, VS Code 1.58.1, and Cmake Tools v1.7.3
|
Brief Issue Summary
Generating for older Visual Studio like 2010 causes an error.
Expected:
Generate projects for older Visual Studio. (VisualStudio.10.0 -amd64)
Apparent Behavior:
CMake Tools Log
Developer Tools Log
Platform and Versions
Other Notes/Information
For older Visual Studio, either should generate without
-T host=x64
or use-G "Visual Studio 10 2010 Win64"
for older CMake versions <=3.12.4and
CMAKE_GENERATOR_TOOLSET
only supports VS2013 or later.https://cmake.org/cmake/help/git-stage/variable/CMAKE_GENERATOR_TOOLSET.html#variable:CMAKE_GENERATOR_TOOLSET
https://cmake.org/cmake/help/v3.12/generator/Visual%20Studio%2010%202010.html
https://cmake.org/cmake/help/v3.13/generator/Visual%20Studio%2010%202010.html
The text was updated successfully, but these errors were encountered: