diff --git a/cmsis/CMSIS_5/CMSIS/TARGET_CORTEX_A/CMakeLists.txt b/cmsis/CMSIS_5/CMSIS/TARGET_CORTEX_A/CMakeLists.txt index 574bccf067..cdd29d79f4 100644 --- a/cmsis/CMSIS_5/CMSIS/TARGET_CORTEX_A/CMakeLists.txt +++ b/cmsis/CMSIS_5/CMSIS/TARGET_CORTEX_A/CMakeLists.txt @@ -1,14 +1,14 @@ # Copyright (c) 2020-2021 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -add_library(mbed-cmsis-cortex-a OBJECT) +add_library(mbed-cmsis-cortex-a INTERFACE) target_include_directories(mbed-cmsis-cortex-a - PUBLIC + INTERFACE Include ) target_sources(mbed-cmsis-cortex-a - PRIVATE + INTERFACE Source/irq_ctrl_gic.c ) diff --git a/cmsis/CMSIS_5/CMSIS/TARGET_CORTEX_M/CMakeLists.txt b/cmsis/CMSIS_5/CMSIS/TARGET_CORTEX_M/CMakeLists.txt index fb7f597c1a..b944fe4247 100644 --- a/cmsis/CMSIS_5/CMSIS/TARGET_CORTEX_M/CMakeLists.txt +++ b/cmsis/CMSIS_5/CMSIS/TARGET_CORTEX_M/CMakeLists.txt @@ -1,14 +1,14 @@ # Copyright (c) 2020-2021 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -add_library(mbed-cmsis-cortex-m OBJECT) +add_library(mbed-cmsis-cortex-m INTERFACE) target_include_directories(mbed-cmsis-cortex-m - PUBLIC + INTERFACE Include ) target_sources(mbed-cmsis-cortex-m - PRIVATE + INTERFACE Source/mbed_tz_context.c )