From 61e44047076b0cb7064793e882bd4f00d15e2c26 Mon Sep 17 00:00:00 2001 From: David Antliff Date: Tue, 7 Apr 2020 12:07:18 +1200 Subject: [PATCH] Fix CMakeLists.txt for CMake variable changes in ESP-IDF v4.1-beta1 and newer. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e87312..051f8ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,4 +6,4 @@ include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(esp32-ds18b20-example) # Ignore false clang warnings about `struct foo = { 0 }` -target_compile_options(${IDF_PROJECT_EXECUTABLE} PRIVATE -Wno-missing-braces -Wmissing-field-initializers) +target_compile_options(${project_elf} PRIVATE -Wno-missing-braces -Wmissing-field-initializers)