diff options
author | Per Åstrand <per.astrand@arm.com> | 2020-05-06 08:59:51 +0200 |
---|---|---|
committer | Per Astrand <per.astrand@arm.com> | 2020-05-08 06:46:53 +0100 |
commit | 88e5c5bb29b9b0f4126eec14296f98baea8fec58 (patch) | |
tree | f58dbdc696a7a17f92bd2719356baf95d1b02a90 /cmsis.cmake | |
parent | 1823930ea1baaaf5975dc0b03eddb45917509410 (diff) | |
download | ethos-u-core-software-88e5c5bb29b9b0f4126eec14296f98baea8fec58.tar.gz |
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
Diffstat (limited to 'cmsis.cmake')
-rw-r--r-- | cmsis.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
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) |