cmake: modules: Remove duplicates only from existing ZEPHYR_MODULE_NAMES
Remove duplicates from ZEPHYR_MODULE_NAMES only if that list exists. That avoids cmake error "list sub-command REMOVE_DUPLICATES requires list to be present" if ZEPHYR_MODULE_NAMES is empty. Signed-off-by: Wolfgang Puffitsch <wopu@demant.com>
This commit is contained in:
parent
fcad2b37e3
commit
4a01446a72
1 changed files with 3 additions and 1 deletions
|
@ -123,4 +123,6 @@ else()
|
|||
|
||||
endif()
|
||||
|
||||
if(DEFINED ZEPHYR_MODULE_NAMES)
|
||||
list(REMOVE_DUPLICATES ZEPHYR_MODULE_NAMES)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue