aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-07-08 20:24:49 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-07-08 20:24:49 +0000
commitcffecb4f2b8177c6264ef65b15f0a182058b39a2 (patch)
tree39a1c340648adf7eb3fba100b38df572d69bdb24 /cmake
parenta68f58ab2bec6a024afae498e4082ddd8b01f178 (diff)
downloadexternal_llvm-cffecb4f2b8177c6264ef65b15f0a182058b39a2.zip
external_llvm-cffecb4f2b8177c6264ef65b15f0a182058b39a2.tar.gz
external_llvm-cffecb4f2b8177c6264ef65b15f0a182058b39a2.tar.bz2
Allow llvm_find_program to find alternate names
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185859 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/config-ix.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 14762f8..fdc2bcd 100755
--- a/cmake/config-ix.cmake
+++ b/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 ?")