Skip to content

Commit 605ae10

Browse files
tejlmandnashif
authored andcommitted
cmake: remove debug message if no modules are included in build.
Fixes: #13245 Remove the printing of: 'Including module(s)' when no modules are included into the CMake build. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent ed20fc9 commit 605ae10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,9 @@ add_subdirectory(subsys)
568568
add_subdirectory(drivers)
569569

570570
# Add all zephyr modules subdirectories.
571-
message("Including module(s): ${ZEPHYR_MODULES_NAME}")
571+
if(ZEPHYR_MODULES_NAME)
572+
message("Including module(s): ${ZEPHYR_MODULES_NAME}")
573+
endif()
572574
set(index 0)
573575
foreach(module_name ${ZEPHYR_MODULES_NAME})
574576
list(GET ZEPHYR_MODULES_DIR ${index} module_dir)

0 commit comments

Comments
 (0)