Support for the Ninja Multi-Config generator
See original GitHub issueBrief Issue Summary
CMake Tools bails out when trying to use the Ninja Multi-Config generator.
Expected:
- Set
"preferredGenerator": { "name": "Ninja Multi-Config" }
for a Kit - Develop much like on would with a multi-configuration generator, such as MSBuild
Apparent Behavior:
Receive an error when setting the kit: Unable to set kit "{0}".
CMake Tools Log
[main] Configuring folder: Test-Boost.UT
[main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found.
[main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found.
Platform and Versions
- Operating System: Windows
- CMake Version: 3.18.1
- VSCode Version: 1.48.2
- CMake Tools Extension Version: 1.4.1
- Compiler/Toolchain: Visual C++ 2019
Issue Analytics
- State:
- Created 3 years ago
- Reactions:12
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Ninja Multi-Config — CMake 3.25.1 Documentation
Generates multiple build-<Config>.ninja files. This generator is very much like the Ninja generator, but with some key differences.
Read more >Multi-Config Ninja Generator in CMake 3.17 - Kitware Inc.
The Ninja Multi-Config generator generates .ninja files, just like the ... CMake supports multi-configuration builds on Linux and all other ...
Read more >Ninja Multi-Config support - Visual Studio Feedback
Will there eventually be support for “Ninja Multi-Config”. This generator was added in cmake 3.17. ... It would really help configuration time issues...
Read more >Ninja Multi-Config : CPP-19687 - YouTrack
Ninja Multi -Config is now supported to the extent that every other multi-config generator is supported - please refer to CPP-20890 for details....
Read more >CMake Ninja Multi-Config generator
that allows building multiple build configuration types e.g. Debug, Release without CMake regenerating build*.ninja files for each build type ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The fix for this issue is available in 1.10 “pre-release”. You can help us validate it by:
This was included in 1.10 which is now generally available.