From a48e960af4b29cdc37d8a8eb08e4543f61fa4233 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 6 Feb 2020 11:20:20 -0500 Subject: [PATCH] tracing: remove useless conditional in cmake file We are checking for the same configuration options twice. Signed-off-by: Anas Nashif --- subsys/tracing/CMakeLists.txt | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/subsys/tracing/CMakeLists.txt b/subsys/tracing/CMakeLists.txt index 796986f6710..3452d6256f3 100644 --- a/subsys/tracing/CMakeLists.txt +++ b/subsys/tracing/CMakeLists.txt @@ -1,18 +1,15 @@ # SPDX-License-Identifier: Apache-2.0 -if(CONFIG_SEGGER_SYSTEMVIEW OR CONFIG_TRACING_CPU_STATS) +zephyr_sources_ifdef( + CONFIG_SEGGER_SYSTEMVIEW + sysview_config.c + sysview.c + ) - zephyr_sources_ifdef( - CONFIG_SEGGER_SYSTEMVIEW - sysview_config.c - sysview.c - ) - - zephyr_sources_ifdef( - CONFIG_TRACING_CPU_STATS - cpu_stats.c - ) -endif() +zephyr_sources_ifdef( + CONFIG_TRACING_CPU_STATS + cpu_stats.c + ) zephyr_sources_ifdef( CONFIG_TRACING