From 1850c03d5e717c76a1cf9e204d3fb52c7cfdf770 Mon Sep 17 00:00:00 2001 From: Martin Kojtal Date: Tue, 2 Mar 2021 09:33:08 +0000 Subject: [PATCH] CMake cmsis: revert object for cmsis-cortex-x libs These are part of cmsis + core, they only extend them thus reverting the change back to INTERFACE lib. --- cmsis/CMSIS_5/CMSIS/TARGET_CORTEX_A/CMakeLists.txt | 6 +++--- cmsis/CMSIS_5/CMSIS/TARGET_CORTEX_M/CMakeLists.txt | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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 )