hopefully unbreak the cmake build, patch by frits van bommel.

llvm-svn: 119069
This commit is contained in:
Chris Lattner 2010-11-14 20:51:15 +00:00
parent 3ebf1f315e
commit ff3afccc6d

View 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()