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})