From 3b13732f7efe119dc3eaa9692e376e1bcff3559c Mon Sep 17 00:00:00 2001 From: Kristofer Jonsson Date: Mon, 28 Jun 2021 20:17:04 +0200 Subject: Building without NPU Support building applications for targets without a NPU. Change-Id: I04199b1c0444f23eadc6d4cf85195413dfd8bc97 --- targets/corstone-300/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'targets') 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 + $<$:ethosu_core_driver;timing_adapter>) + +if (TARGET ethosu_core_driver) + target_compile_definitions(ethosu_core_driver PUBLIC + ETHOSU) +endif() ############################################################################### # Applications -- cgit v1.2.1