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

CMake cmake_minimum_required Deprecation Warning #1546

Merged
merged 6 commits into from
Dec 15, 2023

Conversation

galmyk
Copy link
Contributor

@galmyk galmyk commented Nov 13, 2023

Fixes: #1545

Recently, when building pioasm and/or elf2uf2, CMake warns about cmake_minimum_required:

[ 96%] Performing configure step for 'PioasmBuild'
loading initial cache file /home/gmt/Projects/pico/build/pico-sdk/src/rp2_common/pico_cyw43_driver/pioasm/tmp/PioasmBuild-cache-Release.cmake
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

#1477 reported the issue, but submitted patch is not correct.

* Add ...3.27 to the cmake_minimum_required
* Add trailing new line to the file

Signed-off-by: Ghorban M. Tavakoly <[email protected]>
* Raise minimum CMake version to 3.5, since compatibility with
  CMake < 3.5 will be removed from a future version of CMake.
* Add ...3.27 to silent the CMake deprecation warning.

Signed-off-by: Ghorban M. Tavakoly <[email protected]>
* Add ...3.27 to cmake_minimum_required
* Remove extra trailing new line

Signed-off-by: Ghorban M. Tavakoly <[email protected]>
Signed-off-by: Ghorban M. Tavakoly <[email protected]>
Signed-off-by: Ghorban M. Tavakoly <[email protected]>
@peterharperuk
Copy link
Contributor

#1477 reported the issue, but submitted patch is not correct.

Why not?

@galmyk
Copy link
Contributor Author

galmyk commented Nov 17, 2023

#1477 reported the issue, but submitted patch is not correct.

Why not?

Simply by applying it, I see the warning again! I have cmake 3.27.8.
But I will check it again.

kilograham
kilograham previously approved these changes Dec 15, 2023
@kilograham kilograham merged commit e5e30b4 into raspberrypi:develop Dec 15, 2023
1 check passed
@kilograham kilograham added this to the 1.5.2 milestone Dec 15, 2023
mungewell pushed a commit to mungewell/pico-sdk that referenced this pull request Mar 18, 2024
* Add ...3.27 to the cmake_minimum_required, and make minimum 3.13 everywhere


Signed-off-by: Ghorban M. Tavakoly <[email protected]>
Co-authored-by: Graham Sanderson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants