diff options
author | Brad King <brad.king@kitware.com> | 2012-07-31 18:26:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-07-31 18:30:30 (GMT) |
commit | b708f1a2b9bc82ada6a22f6c63d9fb6ccedb2862 (patch) | |
tree | f7458f2bb480685438b259e99c78c6277c04c417 /Modules/CMakeDetermineCXXCompiler.cmake | |
parent | aa3dbec57d07dd22718c3860d0c0e1b49f15a3ba (diff) | |
download | CMake-b708f1a2b9bc82ada6a22f6c63d9fb6ccedb2862.zip CMake-b708f1a2b9bc82ada6a22f6c63d9fb6ccedb2862.tar.gz CMake-b708f1a2b9bc82ada6a22f6c63d9fb6ccedb2862.tar.bz2 |
CMakeDetermine(C|CXX)Compiler: Consider Clang compilers
Look for "clang" or "clang++" compiler executables so Clang will be used
when it is the only compiler available. Prefer them last to avoid
changing compiler default preferences for existing scripts.
Diffstat (limited to 'Modules/CMakeDetermineCXXCompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineCXXCompiler.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCXXCompiler.cmake b/Modules/CMakeDetermineCXXCompiler.cmake index 7f8f3ec..f78d7a7 100644 --- a/Modules/CMakeDetermineCXXCompiler.cmake +++ b/Modules/CMakeDetermineCXXCompiler.cmake @@ -55,7 +55,7 @@ IF(NOT CMAKE_CXX_COMPILER) IF(CMAKE_CXX_COMPILER_INIT) SET(CMAKE_CXX_COMPILER_LIST ${CMAKE_CXX_COMPILER_INIT}) ELSE(CMAKE_CXX_COMPILER_INIT) - SET(CMAKE_CXX_COMPILER_LIST ${_CMAKE_TOOLCHAIN_PREFIX}c++ ${_CMAKE_TOOLCHAIN_PREFIX}g++ CC aCC cl bcc xlC) + SET(CMAKE_CXX_COMPILER_LIST ${_CMAKE_TOOLCHAIN_PREFIX}c++ ${_CMAKE_TOOLCHAIN_PREFIX}g++ CC aCC cl bcc xlC clang++) ENDIF(CMAKE_CXX_COMPILER_INIT) # Find the compiler. |