From 88e5c5bb29b9b0f4126eec14296f98baea8fec58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=85strand?= Date: Wed, 6 May 2020 08:59:51 +0200 Subject: MLBEDSW-2047 Export built CMSIS Device information In order for platform software to pick up which generic CMSIS Device has been built, export the selected include used for the CMSIS Device through the interface directive to have parents projects include it. Change-Id: I25c8ac833fb8c3c1b0b491229a40508c7b15698a --- cmsis.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmsis.cmake') diff --git a/cmsis.cmake b/cmsis.cmake index 27b1090..5806692 100644 --- a/cmsis.cmake +++ b/cmsis.cmake @@ -35,5 +35,6 @@ target_sources(cmsis_device PRIVATE ${CMSIS_PATH}/Device/ARM/${ARM_CPU}/Source/startup_${ARM_CPU}.c ${CMSIS_PATH}/Device/ARM/${ARM_CPU}/Source/system_${ARM_CPU}.c) target_compile_definitions(cmsis_device PRIVATE ${ARM_CPU}) -target_include_directories(cmsis_device PRIVATE ${CMSIS_PATH}/Device/ARM/${ARM_CPU}/Include) -target_link_libraries(cmsis_device PRIVATE cmsis_core) +target_compile_options(cmsis_device INTERFACE -include${ARM_CPU}.h) +target_include_directories(cmsis_device PUBLIC ${CMSIS_PATH}/Device/ARM/${ARM_CPU}/Include) +target_link_libraries(cmsis_device PUBLIC cmsis_core) -- cgit v1.2.1