From 8311cde6756f0d6f96f42cb0e5f4cdcc6b8b515a Mon Sep 17 00:00:00 2001 From: Alex Duchesne Date: Wed, 18 Sep 2024 19:54:28 -0400 Subject: [PATCH] Added check for esp-idf version to CMakeLists.txt --- components/retro-go/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/retro-go/CMakeLists.txt b/components/retro-go/CMakeLists.txt index 63c3eb595..b771c0d31 100644 --- a/components/retro-go/CMakeLists.txt +++ b/components/retro-go/CMakeLists.txt @@ -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)