diff --git a/flang/tools/f18/CMakeLists.txt b/flang/tools/f18/CMakeLists.txt
--- a/flang/tools/f18/CMakeLists.txt
+++ b/flang/tools/f18/CMakeLists.txt
@@ -1,7 +1,10 @@
+set(LLVM_LINK_COMPONENTS
+  Support
+  )
 add_flang_tool(f18
   dump.cpp
   f18.cpp
-)
+  )
 
 target_link_libraries(f18
   PRIVATE
@@ -10,7 +13,6 @@
   FortranEvaluate
   FortranSemantics
   FortranLower
-  LLVMSupport
 )
 
 set(MODULES