Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F376130
FindClangTidy.cmake
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Size
892 B
Referenced Files
None
Subscribers
None
FindClangTidy.cmake
View Options
# CMake find_package() Module for clang-tidy
#
# Example usage:
#
# find_package(ClangTidy)
#
# If successful the following variables will be defined
# CLANGTIDY_FOUND
# CLANGTIDY_EXECUTABLE
if
(
ROSA_CLANG_TIDY_PATH
STREQUAL
""
)
find_program
(
CLANGTIDY_EXECUTABLE
NAMES
clang-tidy
DOC
"Path to clang-tidy executable"
)
else
()
find_program
(
CLANGTIDY_EXECUTABLE
NAMES
clang-tidy
PATHS
${
ROSA_CLANG_TIDY_PATH
}
DOC
"Path to clang-tidy executable"
NO_DEFAULT_PATH
)
endif
()
# Handle REQUIRED and QUIET arguments
# this will also set CLANGTIDY_FOUND to true if CLANGTIDY_EXECUTABLE exists
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
ClangTidy
"Failed to locate clang-tidy executable"
CLANGTIDY_EXECUTABLE
)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jun 8, 7:28 PM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
150506
Default Alt Text
FindClangTidy.cmake (892 B)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline
Log In to Comment