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

Is it possible to raise cmake_minimum_version in opencv 5.0? #25572

Open
FantasqueX opened this issue May 11, 2024 · 2 comments
Open

Is it possible to raise cmake_minimum_version in opencv 5.0? #25572

FantasqueX opened this issue May 11, 2024 · 2 comments

Comments

@FantasqueX
Copy link
Contributor

FantasqueX commented May 11, 2024

Describe the feature and motivation

  1. Currently, opencv's cmake_minimum_version is 3.5, and uses some deprecated CMake features such as CMP0148 and CMP0146. If we raise the minimum version, opencv's CMake can be simplified.
  2. Help us to choose minimum required C++ standard for OpenCV 5.0 #25039 More than 90% people think opencv 5.0 should use C++17. https://gcc.gnu.org/projects/cxx-status.html#cxx17 Some C++17 features are available since GCC 5, but support was experimental and the ABI of C++17 features was not stable until GCC 9. GCC 9 was released in May 2019, while CMake 3.14 was released in March 2019. If we follow Ubuntu's life cycle, the earliest LTS release in standard support is 20.04 which ships CMake 3.16.

Additional context

No response

@FantasqueX
Copy link
Contributor Author

Related work: #25005

@bebuch
Copy link
Contributor

bebuch commented May 23, 2024

Just a note: For the EOL of Ubuntu LTS (and other distros), the version at the planned release date of OpenCV 5 should be considered. Depending on the release plan, it may be Ubuntu 22.04 LTS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants