From 18724b274408b15ca7bc32f1123de06cc631436e Mon Sep 17 00:00:00 2001 From: alexander Date: Wed, 16 Feb 2022 11:02:28 +0000 Subject: Fixing profiler build flags. CPU_PROFILE_ENABLED was moved to profiler sub-project build. Signed-off-by: alexander Change-Id: I8191c83c7ae0f618769449d7d25fe58876cbcf05 --- CMakeLists.txt | 4 ---- source/profiler/CMakeLists.txt | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7dccd75..14ec1aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -221,10 +221,6 @@ foreach(use_case ${USE_CASES}) target_compile_definitions(${UC_LIB_NAME} PUBLIC "ACTIVATION_BUF_SZ=${${use_case}_ACTIVATION_BUF_SZ}") - # Set the CPU profiling defintiion - target_compile_definitions(${UC_LIB_NAME} PRIVATE - $<$:CPU_PROFILE_ENABLED>) - target_link_libraries(${UC_LIB_NAME} PUBLIC log arm_math diff --git a/source/profiler/CMakeLists.txt b/source/profiler/CMakeLists.txt index f70e86d..e59dc01 100644 --- a/source/profiler/CMakeLists.txt +++ b/source/profiler/CMakeLists.txt @@ -34,6 +34,10 @@ target_include_directories(profiler PUBLIC include) # Profiling API depends on the logging interface and the HAL library. target_link_libraries(profiler PRIVATE log hal) +# Set the CPU profiling defintiion +target_compile_definitions(profiler PUBLIC + $<$:CPU_PROFILE_ENABLED>) + message(STATUS "*******************************************************") message(STATUS "Library : " profiler) message(STATUS "CMAKE_SYSTEM_PROCESSOR : " ${CMAKE_SYSTEM_PROCESSOR}) -- cgit v1.2.1