From 3c2e43a19f9054fa586fd1787d2f280dd9f4d2fa Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 28 May 2019 14:34:21 -0400 Subject: [PATCH] cmake: build modules under /modules As we start adding more modules, all of them end up in ${CMAKE_BINARY_DIR}/ and this is getting too busy. We have a module directory created for each module and the interesting build data is getting lost in the crowd. Move all module into ${CMAKE_BINARY_DIR}/modules to and keep them under one directory. Future enhancement: maintain the same structure of the modules as checked out by west. Signed-off-by: Anas Nashif --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 59f56ceb74e..bbbabce21f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -430,7 +430,7 @@ if(EXISTS ${CMAKE_BINARY_DIR}/zephyr_modules.txt) string(REGEX REPLACE "\"(.*)\":\".*\"" "\\1" module_name ${module}) string(REGEX REPLACE "\".*\":\"(.*)\"" "\\1" module_path ${module}) message("Including module: ${module_name} in path: ${module_path}") - add_subdirectory(${module_path} ${CMAKE_BINARY_DIR}/${module_name}) + add_subdirectory(${module_path} ${CMAKE_BINARY_DIR}/modules/${module_name}) endforeach() endif()