From 2cc0825000006f694a0a464cd4f25aefe59a1592 Mon Sep 17 00:00:00 2001 From: Jakub Kocka Date: Thu, 18 Sep 2025 10:11:12 +0200 Subject: [PATCH] fix: Added check to prevent IDF root directory build failed attempts in Win Closes https://github.com/espressif/esp-idf/issues/17516 --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b374b12dc..73470291ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,12 +1,12 @@ cmake_minimum_required(VERSION 3.16) -project(esp-idf C CXX ASM) if(CMAKE_CURRENT_LIST_DIR STREQUAL CMAKE_SOURCE_DIR) message(FATAL_ERROR "Current directory '${CMAKE_CURRENT_LIST_DIR}' is not buildable. " - "Change directories to one of the example projects in '${CMAKE_CURRENT_LIST_DIR}/examples' and try " - "again.") + "Change directories to one of the example projects in '${CMAKE_CURRENT_LIST_DIR}/examples' and try again.") endif() +project(esp-idf C CXX ASM) + # Variables compile_options, c_compile_options, cxx_compile_options, compile_definitions, link_options shall # not be unset as they may already contain flags, set by toolchain-TARGET.cmake files.