diff --git a/unittests/TableGen/CMakeLists.txt b/unittests/TableGen/CMakeLists.txt index c678f2b639d..178018ba896 100644 --- a/unittests/TableGen/CMakeLists.txt +++ b/unittests/TableGen/CMakeLists.txt @@ -12,7 +12,6 @@ add_public_tablegen_target(AutomataTestTableGen) add_llvm_unittest(TableGenTests CodeExpanderTest.cpp AutomataTest.cpp - $ ) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../utils/TableGen) -target_link_libraries(TableGenTests PRIVATE LLVMTableGen) +target_link_libraries(TableGenTests PRIVATE LLVMTableGenGlobalISel LLVMTableGen) diff --git a/utils/TableGen/CMakeLists.txt b/utils/TableGen/CMakeLists.txt index 8b01a40f3ad..9e918852b1c 100644 --- a/utils/TableGen/CMakeLists.txt +++ b/utils/TableGen/CMakeLists.txt @@ -56,6 +56,6 @@ add_tablegen(llvm-tblgen LLVM X86RecognizableInstr.cpp WebAssemblyDisassemblerEmitter.cpp CTagsEmitter.cpp - $ ) +target_link_libraries(llvm-tblgen PRIVATE LLVMTableGenGlobalISel) set_target_properties(llvm-tblgen PROPERTIES FOLDER "Tablegenning") diff --git a/utils/TableGen/GlobalISel/CMakeLists.txt b/utils/TableGen/GlobalISel/CMakeLists.txt index 1cd741cd6be..c23ef6742f3 100644 --- a/utils/TableGen/GlobalISel/CMakeLists.txt +++ b/utils/TableGen/GlobalISel/CMakeLists.txt @@ -3,7 +3,7 @@ set(LLVM_LINK_COMPONENTS TableGen ) -add_llvm_library(LLVMTableGenGlobalISel OBJECT +add_llvm_library(LLVMTableGenGlobalISel STATIC DISABLE_LLVM_LINK_LLVM_DYLIB CodeExpander.cpp GIMatchDag.cpp GIMatchDagEdge.cpp