[CMake] Unclear distinction between WebKitHelpers and WebKitMacros
[WebKit.git] / Source / cmake / FindClang.cmake
1 #
2 # Check for Clang.
3 #
4 # The following variables are set:
5 #  CLANG_EXE
6 #  CLANG_VERSION
7
8 find_program(CLANG_EXE NAMES "clang")
9
10 execute_process(COMMAND ${CLANG_EXE} --version OUTPUT_VARIABLE CLANG_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
11
12 include(FindPackageHandleStandardArgs)
13 find_package_handle_standard_args(CLANG DEFAULT_MSG
14                                   CLANG_VERSION)
15
16 mark_as_advanced(CLANG_VERSION)