Просмотр исходного кода

Merge branch 'bugfix/cmake_src_exclude_issue' into 'master'

cmake: fix issue with handling of EXCLUDE_SRCS

See merge request espressif/esp-idf!5869
Mahavir Jain 6 лет назад
Родитель
Сommit
8e7c71a1a0
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      tools/cmake/component.cmake

+ 2 - 2
tools/cmake/component.cmake

@@ -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()
+endfunction()