[cmake]: fix idf_component_mock requirement macro

pull/7106/head
Jakob Hasse 2021-07-23 10:26:08 +08:00
rodzic 16057d6c8b
commit e8082ed6c7
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -57,7 +57,11 @@ macro(require_idf_targets)
endmacro()
macro(idf_component_mock)
idf_component_register(REQUIRES cmock)
set(options)
set(single_value)
set(multi_value MOCK_HEADER_FILES INCLUDE_DIRS REQUIRES)
cmake_parse_arguments(_ "${options}" "${single_value}" "${multi_value}" "${ARGN}")
idf_component_register(REQUIRES ${__REQUIRES} cmock)
return()
endmacro()