From 536c13111413209387f6239454aaf66542cd36ad Mon Sep 17 00:00:00 2001 From: jiangguangming Date: Mon, 9 Sep 2019 15:46:47 +0800 Subject: [PATCH] fix bug for cmake build system The path of ${SDKCONFIG_H} does not exist, should be replaced by ${sdkconfig_header}. --- components/esp32/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/esp32/CMakeLists.txt b/components/esp32/CMakeLists.txt index c8a8166eaa..7d9ad3872d 100644 --- a/components/esp32/CMakeLists.txt +++ b/components/esp32/CMakeLists.txt @@ -1,3 +1,4 @@ +idf_build_get_property(sdkconfig_header SDKCONFIG_HEADER) if(BOOTLOADER_BUILD) # For bootloader, all we need from esp32 is headers idf_component_register(INCLUDE_DIRS include) @@ -75,7 +76,7 @@ else() add_custom_command( OUTPUT esp32_out.ld COMMAND "${CMAKE_C_COMPILER}" -C -P -x c -E -o esp32_out.ld -I ${config_dir} ${LD_DIR}/esp32.ld - MAIN_DEPENDENCY ${LD_DIR}/esp32.ld ${SDKCONFIG_H} + MAIN_DEPENDENCY ${LD_DIR}/esp32.ld ${sdkconfig_header} COMMENT "Generating linker script..." VERBATIM)