aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/CMakeLists.txt
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-10-06 01:51:51 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-10-06 01:51:51 +0000
commitde8f33c199f3bf2049b0b732169f2bd8717469c6 (patch)
tree4906ed892dbff03bbd44aae2eff9d7ec0c195755 /utils/TableGen/CMakeLists.txt
parent930193cb5544bd010a0a2bc795c9006913e2c595 (diff)
Build system infrastructure for multiple tblgens.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CMakeLists.txt')
-rw-r--r--utils/TableGen/CMakeLists.txt16
1 files changed, 1 insertions, 15 deletions
diff --git a/utils/TableGen/CMakeLists.txt b/utils/TableGen/CMakeLists.txt
index 9e9a3a1d0d..a845ed201d 100644
--- a/utils/TableGen/CMakeLists.txt
+++ b/utils/TableGen/CMakeLists.txt
@@ -1,9 +1,7 @@
set(LLVM_REQUIRES_EH 1)
set(LLVM_REQUIRES_RTTI 1)
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LLVM_TOOLS_BINARY_DIR})
-
-add_llvm_utility(tblgen
+add_tablegen(llvm-tblgen LLVM
ARMDecoderEmitter.cpp
AsmMatcherEmitter.cpp
AsmWriterEmitter.cpp
@@ -42,15 +40,3 @@ add_llvm_utility(tblgen
X86DisassemblerTables.cpp
X86RecognizableInstr.cpp
)
-target_link_libraries(tblgen LLVMSupport LLVMTableGen)
-if( MINGW )
- target_link_libraries(tblgen imagehlp psapi)
- if(CMAKE_SIZEOF_VOID_P MATCHES "8")
- set_target_properties(tblgen PROPERTIES LINK_FLAGS -Wl,--stack,16777216)
- endif(CMAKE_SIZEOF_VOID_P MATCHES "8")
-endif( MINGW )
-if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD AND NOT BEOS )
- target_link_libraries(tblgen pthread)
-endif()
-
-install(TARGETS tblgen RUNTIME DESTINATION bin)