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