From 59702ea18d7eb9977f079bb6f3c4f5efe6df970b Mon Sep 17 00:00:00 2001 From: Philip Wiese Date: Fri, 13 Dec 2024 19:38:24 +0100 Subject: [PATCH] HotFix: Fix broken CMake flow (#17) --- cmake/Utils.cmake | 4 ++-- devices/CMakeLists.txt | 2 +- drivers/CMakeLists.txt | 2 +- tests/CMakeLists.txt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmake/Utils.cmake b/cmake/Utils.cmake index c89d077..4a9020f 100644 --- a/cmake/Utils.cmake +++ b/cmake/Utils.cmake @@ -39,7 +39,7 @@ endmacro() :param target_platform: The target platform to build for. :param category: The category of the subdirectories. - :param mappings: A list of mappings from target platforms to folders. + :param mappings: A list of mappings from target platforms to folders. Make sure to wrap the list in quotes! .. code-block:: cmake :caption Example Usage @@ -49,7 +49,7 @@ endmacro() chimera-open:snitch_cluster chimera-host: ) - add_chimera_subdirectories(${TARGET_PLATFORM} "Device" ${MAPPINGS}) + add_chimera_subdirectories(${TARGET_PLATFORM} "Device" "${MAPPINGS}") #]=======================================================================] function(add_chimera_subdirectories target_platform category mappings) diff --git a/devices/CMakeLists.txt b/devices/CMakeLists.txt index 60dd76f..e4130e0 100644 --- a/devices/CMakeLists.txt +++ b/devices/CMakeLists.txt @@ -12,4 +12,4 @@ set(DEVICE_MAPPINGS ) # Call the macro -add_chimera_subdirectories(${TARGET_PLATFORM} "Device" ${DEVICE_MAPPINGS}) +add_chimera_subdirectories(${TARGET_PLATFORM} "Device" "${DEVICE_MAPPINGS}") diff --git a/drivers/CMakeLists.txt b/drivers/CMakeLists.txt index 1798c9a..4b28bdc 100644 --- a/drivers/CMakeLists.txt +++ b/drivers/CMakeLists.txt @@ -12,7 +12,7 @@ set(DRIVER_MAPPINGS ) # Call the macro -add_chimera_subdirectories(${TARGET_PLATFORM} "Driver" ${DRIVER_MAPPINGS}) +add_chimera_subdirectories(${TARGET_PLATFORM} "Driver" "${DRIVER_MAPPINGS}") # WIESEP: Export this directory as root include directory for the drivers diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index f63e554..e5b80f9 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -13,4 +13,4 @@ set(TEST_MAPPINGS ) # Call the macro -add_chimera_subdirectories(${TARGET_PLATFORM} "Test" ${TEST_MAPPINGS}) +add_chimera_subdirectories(${TARGET_PLATFORM} "Test" "${TEST_MAPPINGS}")