From cbb3d291a7a6749e51c240c8b1bec64f12efdea9 Mon Sep 17 00:00:00 2001 From: Sherman Perry <14854761+shermp@users.noreply.github.com> Date: Fri, 9 Aug 2024 19:12:41 +1200 Subject: [PATCH] Test Pico SDK version is 2.0.0 or greater --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 10fc93e..6db2e83 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,11 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) pico_sdk_init() +message("Pico SDK version is ${PICO_SDK_VERSION_STRING}") +if(PICO_SDK_VERSION_STRING VERSION_LESS "2.0.0") + message( FATAL_ERROR "Pico SDK version must be 2.0.0 or greater" ) +endif() + Include(FetchContent) FetchContent_Declare(