cmake_modules/FindClang.cmake
changeset 16069 8efb97933020
parent 9246 75f430ebeb74
equal deleted inserted replaced
16068:a617af1ee757 16069:8efb97933020
     9 #
     9 #
    10 # Redistribution and use is allowed according to the terms of the BSD license.
    10 # Redistribution and use is allowed according to the terms of the BSD license.
    11 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
    11 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
    12 
    12 
    13 find_program(CLANG_EXECUTABLE
    13 find_program(CLANG_EXECUTABLE
    14         NAMES clang-mp-3.3 clang-mp-3.2 clang-mp-3.1 clang-mp-3.0 clang
    14         NAMES clang-mp-3.3 clang-mp-3.2 clang-mp-3.1 clang-mp-3.0 clang-20 clang-19 clang-18 clang-17 clang-16 clang-15 clang-14 clang-13 clang-12 clang-11 clang-10 clang-9 clang-8 clang-7 clang-6.0 clang
    15         PATHS /opt/local/bin /usr/local/bin /usr/bin)
    15         PATHS /opt/local/bin /usr/local/bin /usr/bin)
    16 
    16 
    17 if (CLANG_EXECUTABLE)
    17 if (CLANG_EXECUTABLE)
    18     execute_process(COMMAND ${CLANG_EXECUTABLE} --version
    18     execute_process(COMMAND ${CLANG_EXECUTABLE} --version
    19                     OUTPUT_VARIABLE CLANG_VERSION_OUTPUT
    19                     OUTPUT_VARIABLE CLANG_VERSION_OUTPUT