From f7668661672352b5ddd44f10625e74fdff2288d0 Mon Sep 17 00:00:00 2001 From: Renz Christian Bagaporo Date: Wed, 11 Dec 2019 09:55:06 +0800 Subject: [PATCH] cmake: remove intermediary libraries for some component --- components/app_trace/CMakeLists.txt | 4 +--- components/newlib/CMakeLists.txt | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/components/app_trace/CMakeLists.txt b/components/app_trace/CMakeLists.txt index 1ef753dd61..e982d19115 100644 --- a/components/app_trace/CMakeLists.txt +++ b/components/app_trace/CMakeLists.txt @@ -38,7 +38,5 @@ idf_component_register(SRCS "${srcs}" target_compile_options(${COMPONENT_LIB} PRIVATE "-fno-profile-arcs" "-fno-test-coverage") # Force app_trace to also appear later than gcov in link line -add_library(gcov_apptrace INTERFACE) idf_component_get_property(app_trace app_trace COMPONENT_LIB) -target_link_libraries(gcov_apptrace INTERFACE $ gcov $) -target_link_libraries(${COMPONENT_LIB} PUBLIC gcov_apptrace ${LIBC}) +target_link_libraries(${COMPONENT_LIB} INTERFACE $ gcov $ ${LIBC}) diff --git a/components/newlib/CMakeLists.txt b/components/newlib/CMakeLists.txt index 90a0c24a8f..2738e130d9 100644 --- a/components/newlib/CMakeLists.txt +++ b/components/newlib/CMakeLists.txt @@ -28,10 +28,8 @@ idf_component_register(SRCS "${srcs}" LDFRAGMENTS "${ldfragments}") # Toolchain libraries require code defined in this component -add_library(extra INTERFACE) idf_component_get_property(newlib newlib COMPONENT_LIB) -target_link_libraries(extra INTERFACE ${LIBC} ${LIBM} gcc "$") -target_link_libraries(${COMPONENT_LIB} PUBLIC extra) +target_link_libraries(${COMPONENT_LIB} INTERFACE ${LIBC} ${LIBM} gcc "$") set_source_files_properties(heap.c PROPERTIES COMPILE_FLAGS -fno-builtin)