[flang][driver] Add missing dependency (nfc)

These dependencies were introduced via the `ParseTreeDumper` API in:
  * https://reviews.llvm.org/D96716
They manifested themselves in buildbot builders that set
`BUILD_SHARED_LIBS` to `On`.

GitOrigin-RevId: c0deb81cd1a4afbe7d1666390c31746b308ff96f
diff --git a/lib/Frontend/CMakeLists.txt b/lib/Frontend/CMakeLists.txt
index 2ef38c5..53c2518 100644
--- a/lib/Frontend/CMakeLists.txt
+++ b/lib/Frontend/CMakeLists.txt
@@ -22,4 +22,6 @@
   LINK_COMPONENTS
   Option
   Support
+  FrontendOpenACC
+  FrontendOpenMP
 )