summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/TableGen/CMakeLists.txt')
-rw-r--r--llvm/utils/TableGen/CMakeLists.txt16
1 files changed, 1 insertions, 15 deletions
diff --git a/llvm/utils/TableGen/CMakeLists.txt b/llvm/utils/TableGen/CMakeLists.txt
index 9e9a3a1d0d7..a845ed201df 100644
--- a/llvm/utils/TableGen/CMakeLists.txt
+++ b/llvm/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)
OpenPOWER on IntegriCloud