]> granicus.if.org Git - esp-idf/commitdiff
cmake: fix issue with handling of EXCLUDE_SRCS
authorMahavir Jain <mahavir@espressif.com>
Thu, 22 Aug 2019 07:47:10 +0000 (13:17 +0530)
committerMahavir Jain <mahavir@espressif.com>
Thu, 22 Aug 2019 07:47:44 +0000 (13:17 +0530)
tools/cmake/component.cmake

index 1ec7efcfcac86409cf8fb667f9d7cf95e7b32454..a7f099e4bfc9cc80679551208cef310698bbcf24 100644 (file)
@@ -271,7 +271,7 @@ macro(__component_add_sources sources)
         if(__EXCLUDE_SRCS)
             foreach(src ${__EXCLUDE_SRCS})
                 get_filename_component(src "${src}" ABSOLUTE)
-                list(REMOVE_ITEM source "${src}")
+                list(REMOVE_ITEM sources "${src}")
             endforeach()
         endif()
     endif()
@@ -551,4 +551,4 @@ endfunction()
 # Wrapper around target_compile_definitions that passes the component name
 function(component_compile_definitions)
     target_compile_definitions(${COMPONENT_LIB} PRIVATE ${ARGV})
-endfunction()
\ No newline at end of file
+endfunction()