diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-08-08 15:36:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-11-19 17:39:34 (GMT) |
commit | 5096967ecd443f3d7477d823e7ffdffcc15a8ed1 (patch) | |
tree | 3698fa4cad976ec180a879172a8df7dd99a6a721 /Modules/Compiler | |
parent | 76552d595db509d47e9bf179aac7a00e2f1fcfae (diff) | |
download | CMake-5096967ecd443f3d7477d823e7ffdffcc15a8ed1.zip CMake-5096967ecd443f3d7477d823e7ffdffcc15a8ed1.tar.gz CMake-5096967ecd443f3d7477d823e7ffdffcc15a8ed1.tar.bz2 |
Allow toolchain files to specify an external toolchain.
Clang can compile code, but uses the gcc tools for other tasks such
as linking. The -gcc-toolchain option can be used for that, but
generalize so that other compilers can be treated the same.
If such a location is specified, use it as a hint for finding
the binutils executables.
Diffstat (limited to 'Modules/Compiler')
-rw-r--r-- | Modules/Compiler/Clang.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/Clang.cmake b/Modules/Compiler/Clang.cmake index f0ea2f8..055aad6 100644 --- a/Modules/Compiler/Clang.cmake +++ b/Modules/Compiler/Clang.cmake @@ -31,5 +31,6 @@ else() set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ") set(CMAKE_${lang}_COMPILE_OPTIONS_VISIBILITY "-fvisibility=") set(CMAKE_${lang}_COMPILE_OPTIONS_TARGET "-target ") + set(CMAKE_${lang}_COMPILE_OPTIONS_EXTERNAL_TOOLCHAIN "-gcc-toolchain ") endmacro() endif() |