Skip to content
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

How to set the default cmake_minimum_required version in QuickStart command #3793

Open
LiuZengqiang opened this issue May 26, 2024 · 2 comments
Labels
enhancement an enhancement to the product that is either not present or an improvement to an existing feature
Milestone

Comments

@LiuZengqiang
Copy link
Contributor

Brief Issue Summary

How to set the default cmake_minimum_required version in QuickStart command?

When using "QuickStrat", there will be created a default CMakeLists.txt file, the cmake_minimum_required is 3.0.0 in this file.
It will create a warning of "(cmake_minimum_required):Compatibility with CMake < 3.5 will be removed from a future version of CMake.", how to set the cmake_minimum_requied is 3.20.0 or other user defined version?

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response

@Yingzi1234
Copy link
Collaborator

Yingzi1234 commented May 30, 2024

@LiuZengqiang Thank you for your GitHub issue! You can fix this by manually modifying the code “cmake_minimum_required(VERSION 3.0.0)” in the CMakeLists.txt file to a version greater than (version 3.5.0).

Before modify:
image

After modify:
image

Please feel free if you have any questions and doubt!

@Yingzi1234 Yingzi1234 added more info needed More info is needed from the community for us to properly triage and investigate. and removed triage labels May 30, 2024
@LiuZengqiang
Copy link
Contributor Author

@Yingzi1234 Thanks for your reply. However, I'm too lazy to modify it manually 😂. Specifying the CMake version in the configuration file of cmake-tools once and for all might be a better solution.

@Yingzi1234 Yingzi1234 added enhancement an enhancement to the product that is either not present or an improvement to an existing feature and removed more info needed More info is needed from the community for us to properly triage and investigate. labels May 31, 2024
@gcampbell-msft gcampbell-msft added this to the Backlog milestone Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement an enhancement to the product that is either not present or an improvement to an existing feature
Projects
Status: Triage Needed
Development

No branches or pull requests

3 participants