Link to static LLVMTableGen.a without pulling in its dependencies because
we'd like to also link to libLLVM.dll.

diff -urN mlir-17.0.1.src/lib/Tools/mlir-pdll-lsp-server/CMakeLists.txt.orig mlir-17.0.1.src/lib/Tools/mlir-pdll-lsp-server/CMakeLists.txt
--- mlir-17.0.1.src/lib/Tools/mlir-pdll-lsp-server/CMakeLists.txt.orig	2023-09-19 11:05:13.000000000 +0200
+++ mlir-17.0.1.src/lib/Tools/mlir-pdll-lsp-server/CMakeLists.txt	2023-10-10 17:50:15.171968000 +0200
@@ -11,4 +11,5 @@
   MLIRPDLLCodeGen
   MLIRPDLLParser
   MLIRLspServerSupportLib
+  LLVMTableGen.a
   )

diff -urN mlir-17.0.1.src/lib/Tools/mlir-tblgen/CMakeLists.txt.orig mlir-17.0.1.src/lib/Tools/mlir-tblgen/CMakeLists.txt
--- mlir-17.0.1.src/lib/Tools/mlir-tblgen/CMakeLists.txt.orig	2023-09-19 11:05:13.000000000 +0200
+++ mlir-17.0.1.src/lib/Tools/mlir-tblgen/CMakeLists.txt	2023-10-10 22:15:04.860073100 +0200
@@ -6,7 +6,7 @@
   ADDITIONAL_HEADER_DIRS
   ${MLIR_MAIN_INCLUDE_DIR}/mlir/Tools/mlir-tblgen
 
-  DISABLE_LLVM_LINK_LLVM_DYLIB
+  # DISABLE_LLVM_LINK_LLVM_DYLIB
 
   LINK_COMPONENTS
   TableGen

diff -urN mlir-17.0.1.src/lib/Tools/tblgen-lsp-server/CMakeLists.txt.orig mlir-17.0.1.src/lib/Tools/tblgen-lsp-server/CMakeLists.txt
--- mlir-17.0.1.src/lib/Tools/tblgen-lsp-server/CMakeLists.txt.orig	2023-09-19 11:05:13.000000000 +0200
+++ mlir-17.0.1.src/lib/Tools/tblgen-lsp-server/CMakeLists.txt	2023-10-10 22:08:57.000180000 +0200
@@ -12,9 +12,10 @@
   ADDITIONAL_HEADER_DIRS
   ${MLIR_MAIN_INCLUDE_DIR}/mlir/Tools/tblgen-lsp-server
 
-  DISABLE_LLVM_LINK_LLVM_DYLIB
+  # DISABLE_LLVM_LINK_LLVM_DYLIB
 
   LINK_LIBS PUBLIC
   MLIRLspServerSupportLib
   MLIRSupport
+  LLVMTableGen.a
   )
