commit | 72d6681826840c0a14be61d19c71a55f280d38ae | [log] [tgz] |
---|---|---|
author | Brad King <brad.king@kitware.com> | Fri Sep 05 11:59:35 2014 -0400 |
committer | Brad King <brad.king@kitware.com> | Fri Sep 05 12:06:27 2014 -0400 |
tree | 4140cdc3c9ffb29bc6cb9882cd4530dd6dbb2870 | |
parent | 55d6aa36a522f2dd7849ccd53d9e743a88f8c7a1 [diff] |
Fix finding binutils when cross-compiling with Clang Since commit v3.0.0-rc1~342^2~2 (Add compiler target compile options, 2013-05-19) we use CMAKE_<LANG>_COMPILER_TARGET as the binutils prefix when cross-compiling with Clang. Fix the implementation to use the compiler target as the prefix only when it is set. Otherwise toolchain files not using CMAKE_<LANG>_COMPILER_TARGET cause the logic to use a prefix of just "-" and of course cannot find "-ar" or "-ld".