From 698deecaccc2635e3316c75b19a884177d6fcf7c Mon Sep 17 00:00:00 2001 From: Tian Hai Bo Date: Sun, 4 Feb 2024 13:14:36 +0800 Subject: [PATCH] esp_adf: Fix ADF_VER error when not under ADF subfolder --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8da761e07..13a8d9285 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,7 @@ execute_process(COMMAND git describe --always --tags --dirty OUTPUT_VARIABLE ADF_VER - OUTPUT_STRIP_TRAILING_WHITESPACE) + OUTPUT_STRIP_TRAILING_WHITESPACE + WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}) add_definitions(-DADF_VER=\"${ADF_VER}\") if(NOT DEFINED ENV{IDF_PATH})