cmake: Fix "Loading Zephyr module(s)" message
Modules' names would get concatenated together into single
string, making the message hard to read.
Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
diff --git a/share/zephyr-package/cmake/ZephyrConfig.cmake b/share/zephyr-package/cmake/ZephyrConfig.cmake
index 6f243cc..8052462 100644
--- a/share/zephyr-package/cmake/ZephyrConfig.cmake
+++ b/share/zephyr-package/cmake/ZephyrConfig.cmake
@@ -65,7 +65,8 @@
zephyr_package_message(NOTICE "Loading Zephyr default modules (${location}).")
include(zephyr_default NO_POLICY_SCOPE)
else()
- zephyr_package_message(NOTICE "Loading Zephyr module(s) (${location}): ${Zephyr_FIND_COMPONENTS}")
+ string(JOIN " " msg_components ${Zephyr_FIND_COMPONENTS})
+ zephyr_package_message(NOTICE "Loading Zephyr module(s) (${location}): ${msg_components}")
foreach(component ${Zephyr_FIND_COMPONENTS})
if(${component} MATCHES "^\([^:]*\):\(.*\)$")
string(REPLACE "," ";" SUB_COMPONENTS ${CMAKE_MATCH_2})