question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for the Ninja Multi-Config generator

See original GitHub issue

Brief Issue Summary

CMake Tools bails out when trying to use the Ninja Multi-Config generator.

Expected:

  1. Set "preferredGenerator": { "name": "Ninja Multi-Config" } for a Kit
  2. 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:closed
  • Created 3 years ago
  • Reactions:12
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
bobbrowcommented, Mar 1, 2022

The fix for this issue is available in 1.10 “pre-release”. You can help us validate it by:

  1. Opening the extensions panel in VS Code
  2. Selecting the CMake Tools extension
  3. Clicking the “Switch to Pre-release Version” button

image

1reaction
bobbrowcommented, Apr 6, 2022

This was included in 1.10 which is now generally available.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found