From f2813721db33d8bf3adccf250e8e32027c374c05 Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Mon, 17 Apr 2023 14:06:23 +0000 Subject: [PATCH] Duplicate of SWDEV-392986 -Use absolute path of clang-tidy Using clang-tidy with out any absolute path is resulting in build failure. Corrected the same. Due to build script issues, find_program was not able to find clang-tidy So the issue was not exposed. Fixing the build script exposed the build failures Change-Id: I6e886bf6beba531b97205f264f729544fd5cf303 [ROCm/rocprofiler commit: 6da9f43f6152d867167fad0ad55654d4f56d77dd] --- .../rocprofiler/tests/featuretests/profiler/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/projects/rocprofiler/tests/featuretests/profiler/CMakeLists.txt b/projects/rocprofiler/tests/featuretests/profiler/CMakeLists.txt index 9730eb7c65..c6c76da40d 100644 --- a/projects/rocprofiler/tests/featuretests/profiler/CMakeLists.txt +++ b/projects/rocprofiler/tests/featuretests/profiler/CMakeLists.txt @@ -33,10 +33,9 @@ find_package(HIP REQUIRED MODULE) find_program(CLANG_TIDY_EXE NAMES "clang-tidy") if (CLANG_TIDY_EXE) set(CMAKE_CXX_CLANG_TIDY - clang-tidy; + ${CLANG_TIDY_EXE}; -format-style='file'; - -header-filter=${CMAKE_CURRENT_SOURCE_DIR}; - ) + -header-filter=${CMAKE_CURRENT_SOURCE_DIR};) endif() # ############################################################################################################################################ # App Based FeatureTests