diff options
author | alexander <alexander.efremov@arm.com> | 2022-02-16 11:02:28 +0000 |
---|---|---|
committer | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2022-02-23 13:33:14 +0000 |
commit | 18724b274408b15ca7bc32f1123de06cc631436e (patch) | |
tree | adc847614cfd1aa6b394c32b0cb9072b09ae5e38 /source/profiler | |
parent | 68549b4afbe5098e46bda12be3769c7bf70b6e8b (diff) | |
download | ml-embedded-evaluation-kit-18724b274408b15ca7bc32f1123de06cc631436e.tar.gz |
Fixing profiler build flags.
CPU_PROFILE_ENABLED was moved to profiler sub-project build.
Signed-off-by: alexander <alexander.efremov@arm.com>
Change-Id: I8191c83c7ae0f618769449d7d25fe58876cbcf05
Diffstat (limited to 'source/profiler')
-rw-r--r-- | source/profiler/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
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 + $<$<BOOL:${CPU_PROFILE_ENABLED}>:CPU_PROFILE_ENABLED>) + message(STATUS "*******************************************************") message(STATUS "Library : " profiler) message(STATUS "CMAKE_SYSTEM_PROCESSOR : " ${CMAKE_SYSTEM_PROCESSOR}) |