[llvm] r185859 - Allow llvm_find_program to find alternate names
Matt Arsenault
Matthew.Arsenault at amd.com
Mon Jul 8 13:24:49 PDT 2013
Author: arsenm
Date: Mon Jul 8 15:24:49 2013
New Revision: 185859
URL: http://llvm.org/viewvc/llvm-project?rev=185859&view=rev
Log:
Allow llvm_find_program to find alternate names
Modified:
llvm/trunk/cmake/config-ix.cmake
Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=185859&r1=185858&r2=185859&view=diff
==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Mon Jul 8 15:24:49 2013
@@ -253,7 +253,8 @@ check_type_exists(error_t errno.h HAVE_E
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 ?")
More information about the llvm-commits
mailing list