ROCm / rocm-cmake

CMake modules used within the ROCm libraries
https://rocm.docs.amd.com/projects/ROCmCMakeBuildTools/en/latest/
MIT License
62 stars 43 forks source link

make Clang-Tidy and CppCheck optional #135

Closed apwojcik closed 1 year ago

apwojcik commented 1 year ago

With this PR, CMake is only generating additional clang-tidy and cppcheck targets if the tools are installed in the system (can be found). As an option, the PR provides the method to switch the checks off even if the tools are present.

On Windows, the Clang-Tidy and CppCheck are not installed by default. If missing, the tools block successful build configuration. On the other hand, when one of them is available, the CMake generates a vast number of targets related to code checks. Those targets pollute the generated project and are exposed to an IDE project view, and the "real" targets are hard to find.