diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-07-08 20:24:49 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-07-08 20:24:49 +0000 |
| commit | 9096217280533f4ecccc6174feb89fc9132c24ef (patch) | |
| tree | 82328e42b38ac0211722af6a3925d42330313f51 | |
| parent | 266db7fe043f8f29bc76a7242761d35b3e70cd82 (diff) | |
| download | bcm5719-llvm-9096217280533f4ecccc6174feb89fc9132c24ef.tar.gz bcm5719-llvm-9096217280533f4ecccc6174feb89fc9132c24ef.zip | |
Allow llvm_find_program to find alternate names
llvm-svn: 185859
| -rwxr-xr-x | llvm/cmake/config-ix.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake index 14762f87fad..fdc2bcd9286 100755 --- a/llvm/cmake/config-ix.cmake +++ b/llvm/cmake/config-ix.cmake @@ -253,7 +253,8 @@ check_type_exists(error_t errno.h HAVE_ERROR_T) function(llvm_find_program name) string(TOUPPER ${name} NAME) string(REGEX REPLACE "\\." "_" NAME ${NAME}) - find_program(LLVM_PATH_${NAME} ${name}) + + find_program(LLVM_PATH_${NAME} NAMES ${ARGV}) mark_as_advanced(LLVM_PATH_${NAME}) if(LLVM_PATH_${NAME}) set(HAVE_${NAME} 1 CACHE INTERNAL "Is ${name} available ?") |

