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: 6da9f43f61]
This commit is contained in:
Ammar ELWazir
2023-04-17 14:06:23 +00:00
committed by Ammar Elwazir
parent 3cd1440deb
commit f2813721db
@@ -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