Skip to content

Commit

Permalink
Test Pico SDK version is 2.0.0 or greater
Browse files Browse the repository at this point in the history
  • Loading branch information
shermp committed Aug 9, 2024
1 parent e9b3b2a commit cbb3d29
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit cbb3d29

Please sign in to comment.