cmake: modules: Enclose name and path in quotes
Due to the fact that CMake only supports greedy regexes,
the ':' in a Windows path ('C:\...') was being matched leading
to an invalid split of the line. Quote both the name and the path
to avoid this issue.
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
diff --git a/scripts/zephyr_module.py b/scripts/zephyr_module.py
index 0431227..f119ce8 100755
--- a/scripts/zephyr_module.py
+++ b/scripts/zephyr_module.py
@@ -90,7 +90,7 @@
cmake_path = os.path.join(module, cmake_setting or 'zephyr')
cmake_file = os.path.join(cmake_path, 'CMakeLists.txt')
if os.path.isfile(cmake_file) and cmake_out is not None:
- cmake_out.write('{}:{}\n'.format(os.path.basename(module),
+ cmake_out.write('\"{}\":\"{}\"\n'.format(os.path.basename(module),
os.path.abspath(cmake_path)))
kconfig_file = os.path.join(module, kconfig_setting or 'zephyr/Kconfig')