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.

Version restriction of CMakePresets

See original GitHub issue

Brief Issue Summary

1.7.0 restricts CMakePresets.json to version 2 and above. As this version was only introduced recently (with CMake 3.20; End of March 2021), what is the reason to disallow version 1 (3.19) files?

Expected:

(Reintroduce) Support for

{
  "version": 1,
  "cmakeMinimumRequired": {
    "major": 3,
    "minor": 19,
    "patch": 0
  },
 [...]
}

Apparent Behavior:

Error is shown: CMakePresets version 1 is not supported. How would you like to proceed?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
xisui-MSFTcommented, Apr 20, 2021

This is by design. Version 2 supports build and test presets. However, we do support all versions of cmake so you can use version 2 + cmake 3.19. @esweet431

0reactions
andreeiscommented, May 13, 2021

Closing this as it is not on our roadmap and we also don’t have resources to implement and then maintain this scenario.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[question] CMakePresets and Visual Studio 2019 / 2022 ...
The choice of targeting schema version 4 means VS2019 / VS2022 are necessarily excluded from consuming some or all of these generated files....
Read more >
cmake-presets(7) — CMake 3.25.1 Documentation
An optional array of Configure Preset objects. This is allowed in preset files specifying version 1 or above. buildPresets. An optional array of...
Read more >
CMake Presets | nanoFramework Documentation
This document describes how to use and modify the CMakePresets.json and ... "BUILD_VERSION" : "version-number-for-the-build-format-is-N.N.N.N".
Read more >
Need a file which stores preset build options - GitLab
I'm on the Visual C++ team at Microsoft, and we've been designing a version 2 of CMakeSettings.json . We'd love to align instead...
Read more >
CMake Presets in Practice - PSPDFKit
Having the presets defined in version control in a single location helps when communicating between, or even within, teams. Which build flavor is...
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