Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F27033399
FindClangFormat.cmake
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Authored By
Unknown
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
Tue, Oct 27, 4:18 PM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
406964
Default Alt Text
FindClangFormat.cmake (926 B)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline