[llvm-commits] [llvm] r119069 - /llvm/trunk/CMakeLists.txt

Chris Lattner sabre at nondot.org
Sun Nov 14 12:51:15 PST 2010


Author: lattner
Date: Sun Nov 14 14:51:15 2010
New Revision: 119069

URL: http://llvm.org/viewvc/llvm-project?rev=119069&view=rev
Log:
hopefully unbreak the cmake build, patch by frits van bommel.

Modified:
    llvm/trunk/CMakeLists.txt

Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=119069&r1=119068&r2=119069&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Sun Nov 14 14:51:15 2010
@@ -328,7 +328,8 @@
   message(STATUS "Targeting ${t}")
   add_subdirectory(lib/Target/${t})
   add_subdirectory(lib/Target/${t}/TargetInfo)
-  if( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/*AsmPrinter.cpp )
+  file(GLOB ASMPRINTER_FILE ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/*AsmPrinter.cpp )
+  if( EXISTS ${ASMPRINTER_FILE} )
     set(LLVM_ENUM_ASM_PRINTERS 
       "${LLVM_ENUM_ASM_PRINTERS}LLVM_ASM_PRINTER(${t})\n")
   endif()





More information about the llvm-commits mailing list