mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-04-16 14:42:54 +00:00
CMake cmake_minimum_required Deprecation Warning (#1546)
* Add ...3.27 to the cmake_minimum_required, and make minimum 3.13 everywhere Signed-off-by: Ghorban M. Tavakoly <gmt3141@gmail.com> Co-authored-by: Graham Sanderson <graham.sanderson@raspberrypi.com>
This commit is contained in:
parent
01804acb0a
commit
e5e30b40fd
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
cmake_minimum_required(VERSION 3.13...3.27)
|
||||
|
||||
# Note: this CMakeLists.txt can be used as a top-level CMakeLists.txt for the SDK itself. For all other uses
|
||||
# it is included as a subdirectory via the pico_sdk_init() method provided by pico_sdk_init.cmake
|
||||
@ -61,4 +61,3 @@ if (NOT TARGET _pico_sdk_inclusion_marker)
|
||||
pico_promote_common_scope_vars()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
@ -59,7 +59,7 @@ instructions for other platforms, and just in general, we recommend you see [Ras
|
||||
3. Setup a `CMakeLists.txt` like:
|
||||
|
||||
```cmake
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
cmake_minimum_required(VERSION 3.13...3.27)
|
||||
|
||||
# initialize the SDK based on PICO_SDK_PATH
|
||||
# note: this must happen before project()
|
||||
@ -79,7 +79,7 @@ instructions for other platforms, and just in general, we recommend you see [Ras
|
||||
1. Setup a `CMakeLists.txt` like:
|
||||
|
||||
```cmake
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
cmake_minimum_required(VERSION 3.13...3.27)
|
||||
|
||||
# initialize pico-sdk from submodule
|
||||
# note: this must happen before project()
|
||||
|
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
cmake_minimum_required(VERSION 3.13...3.27)
|
||||
project(elf2uf2)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
|
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
cmake_minimum_required(VERSION 3.13...3.27)
|
||||
project(pioasm CXX)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
|
Loading…
x
Reference in New Issue
Block a user