[PATCH] Allow llvm_find_program to find alternate names

Matt Arsenault Matthew.Arsenault at amd.com
Mon Jul 8 12:13:09 PDT 2013


Hi chandlerc,

http://llvm-reviews.chandlerc.com/D1115

Files:
  cmake/config-ix.cmake

Index: cmake/config-ix.cmake
===================================================================
--- cmake/config-ix.cmake
+++ cmake/config-ix.cmake
@@ -253,7 +253,8 @@
 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 ?")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1115.1.patch
Type: text/x-patch
Size: 506 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130708/b6a5535b/attachment.bin>


More information about the llvm-commits mailing list