diff options
author | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2021-06-28 20:17:04 +0200 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2021-06-28 20:17:04 +0200 |
commit | 3b13732f7efe119dc3eaa9692e376e1bcff3559c (patch) | |
tree | 0d8f87a7779cec9aa9b5902f74a068d373e99293 | |
parent | ec451550f961ee940e2d9393bd6a52f4d2c25685 (diff) | |
download | ethos-u-core-platform-3b13732f7efe119dc3eaa9692e376e1bcff3559c.tar.gz |
Building without NPU
Support building applications for targets without a NPU.
Change-Id: I04199b1c0444f23eadc6d4cf85195413dfd8bc97
-rw-r--r-- | targets/corstone-300/CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/targets/corstone-300/CMakeLists.txt b/targets/corstone-300/CMakeLists.txt index 7ae4d04..9c527fc 100644 --- a/targets/corstone-300/CMakeLists.txt +++ b/targets/corstone-300/CMakeLists.txt @@ -76,8 +76,13 @@ target_sources(ethosu_target_startup INTERFACE target.cpp mpu.cpp) -target_compile_definitions(ethosu_core_driver PUBLIC ETHOSU) -target_link_libraries(ethosu_target_startup INTERFACE ethosu_core_driver timing_adapter) +target_link_libraries(ethosu_target_startup INTERFACE + $<$<TARGET_EXISTS:ethosu_core_driver>:ethosu_core_driver;timing_adapter>) + +if (TARGET ethosu_core_driver) + target_compile_definitions(ethosu_core_driver PUBLIC + ETHOSU) +endif() ############################################################################### # Applications |