diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-14 19:12:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-14 19:12:57 +0000 |
commit | aeafb894fa09b381701a2706dde27f1d3df80340 (patch) | |
tree | 27e6f5a0a17c3e5b83b4d8c63cd4773785a89991 /CMakeLists.txt | |
parent | e15f2e17ea27f3c2e9aae695e5bf6c4bf21097b1 (diff) | |
download | llvm-aeafb894fa09b381701a2706dde27f1d3df80340.tar.gz llvm-aeafb894fa09b381701a2706dde27f1d3df80340.tar.bz2 llvm-aeafb894fa09b381701a2706dde27f1d3df80340.tar.xz |
hopefully fix cmake as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119058 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d549e83593..11c4ee9373 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -328,10 +328,13 @@ 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 ) + set(LLVM_ENUM_ASM_PRINTERS + "${LLVM_ENUM_ASM_PRINTERS}LLVM_ASM_PRINTER(${t})\n") + endif( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/AsmPrinter/CMakeLists.txt ) + if( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/InstPrinter/CMakeLists.txt ) add_subdirectory(lib/Target/${t}/InstPrinter) - set(LLVM_ENUM_ASM_PRINTERS - "${LLVM_ENUM_ASM_PRINTERS}LLVM_ASM_PRINTER(${t})\n") endif( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/InstPrinter/CMakeLists.txt ) if( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/AsmParser/CMakeLists.txt ) add_subdirectory(lib/Target/${t}/AsmParser) |