hopefully unbreak the cmake build, patch by frits van bommel.
authorChris Lattner <sabre@nondot.org>
Sun, 14 Nov 2010 20:51:15 +0000 (20:51 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 14 Nov 2010 20:51:15 +0000 (20:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119069 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index 4f413bc1e4ca1907a134a66fd5b59a2505b92a7d..688fb38a42cc1a4b0df0b897d9a9ab2888126a98 100644 (file)
@@ -328,7 +328,8 @@ foreach(t ${LLVM_TARGETS_TO_BUILD})
   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()