Skip to content

Commit

Permalink
Added check for esp-idf version to CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
ducalex committed Sep 18, 2024
1 parent 4e0caf8 commit 8311cde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/retro-go/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
if(((IDF_VERSION_MAJOR EQUAL 4) AND (IDF_VERSION_MINOR LESS 4)) OR ((IDF_VERSION_MAJOR EQUAL 5) AND (IDF_VERSION_MINOR GREATER 2)))
message(FATAL_ERROR "Retro-Go is not compatible with your version of esp-idf.\nPlease use esp-idf 4.4, 5.0, 5.1, or 5.2")
endif()

set(COMPONENT_SRCDIRS ". drivers/audio fonts libs/netplay libs/lodepng")
set(COMPONENT_ADD_INCLUDEDIRS ". libs/netplay libs/lodepng")
if (IDF_VERSION_MAJOR EQUAL 5)
Expand Down

0 comments on commit 8311cde

Please sign in to comment.