diff --git a/components/esp_coex/CMakeLists.txt b/components/esp_coex/CMakeLists.txt index e6f8699772..a1da2af74c 100644 --- a/components/esp_coex/CMakeLists.txt +++ b/components/esp_coex/CMakeLists.txt @@ -1,5 +1,7 @@ idf_build_get_property(idf_target IDF_TARGET) +set(srcs "") + if(${idf_target} STREQUAL "linux") return() # This component is not supported by the POSIX/Linux simulator endif() diff --git a/components/esp_common/project_include.cmake b/components/esp_common/project_include.cmake index 2665404c50..b50959c509 100644 --- a/components/esp_common/project_include.cmake +++ b/components/esp_common/project_include.cmake @@ -1,6 +1,8 @@ # # Warn if the toolchain version doesn't match # +idf_build_get_property(target IDF_TARGET) + if(NOT (${target} STREQUAL "linux" OR CMAKE_C_COMPILER_ID MATCHES "Clang")) execute_process( COMMAND ${CMAKE_C_COMPILER} -dumpmachine diff --git a/components/lwip/CMakeLists.txt b/components/lwip/CMakeLists.txt index 4daec4c224..0656576f66 100644 --- a/components/lwip/CMakeLists.txt +++ b/components/lwip/CMakeLists.txt @@ -1,4 +1,5 @@ idf_build_get_property(target IDF_TARGET) +set(srcs "") if(CONFIG_LWIP_ENABLE) if(NOT ${target} STREQUAL "linux") diff --git a/components/newlib/CMakeLists.txt b/components/newlib/CMakeLists.txt index 0d23f0f103..99a11e810f 100644 --- a/components/newlib/CMakeLists.txt +++ b/components/newlib/CMakeLists.txt @@ -66,6 +66,7 @@ else() "src/picolibc/open_memstream.c") endif() +set(ldfragments "") list(APPEND ldfragments "src/newlib.lf" "src/system_libs.lf") if(CONFIG_SPIRAM_CACHE_WORKAROUND) diff --git a/components/vfs/CMakeLists.txt b/components/vfs/CMakeLists.txt index 51d7a21dd7..ca4550376a 100644 --- a/components/vfs/CMakeLists.txt +++ b/components/vfs/CMakeLists.txt @@ -7,6 +7,8 @@ if(${target} STREQUAL "linux") return() endif() +set(sources "") + list(APPEND sources "vfs.c" "vfs_eventfd.c" "vfs_semihost.c"