Skip to content

Commit

Permalink
Add CMake error for SDK < v5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mjcross committed Apr 11, 2023
1 parent 0e1821c commit 597bb1a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
if (NOT IDF_VERSION_MAJOR)
set(IDF_VERSION_MAJOR 3)
endif()

if (IDF_VERSION_MAJOR LESS 5)
message(FATAL_ERROR "Can't build: requires ESP-IDF version 5.0 or above.")
endif()

set(COMPONENT_ADD_INCLUDEDIRS include)
set(COMPONENT_SRCS "owb.c" "owb_gpio.c" "owb_rmt.c")
set(COMPONENT_REQUIRES "soc" "driver" "esp_rom")
Expand Down

0 comments on commit 597bb1a

Please sign in to comment.