From 6c11aca627848b9c1e93d35c278dd947bdf05a0f Mon Sep 17 00:00:00 2001
From: Florian Uhlig <f.uhlig@gsi.de>
Date: Tue, 7 Dec 2021 17:17:25 +0100
Subject: [PATCH] Add missing library dependencies

---
 core/base/CMakeLists.txt          | 2 +-
 reco/detectors/sts/CMakeLists.txt | 2 +-
 reco/detectors/tof/CMakeLists.txt | 2 +-
 sim/detectors/much/CMakeLists.txt | 2 +-
 sim/detectors/rich/CMakeLists.txt | 2 +-
 sim/detectors/sts/CMakeLists.txt  | 2 +-
 sim/detectors/trd/CMakeLists.txt  | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/core/base/CMakeLists.txt b/core/base/CMakeLists.txt
index 225973166c..506060bc73 100644
--- a/core/base/CMakeLists.txt
+++ b/core/base/CMakeLists.txt
@@ -70,7 +70,7 @@ EndIf()
 Set(LINKDEF CbmBaseLinkDef.h)
 Set(LIBRARY_NAME CbmBase)
 Set(DEPENDENCIES
-    CbmData Base boost_regex
+    CbmData Base boost_regex boost_filesystem
 )
 
 GENERATE_LIBRARY()
diff --git a/reco/detectors/sts/CMakeLists.txt b/reco/detectors/sts/CMakeLists.txt
index 251273ae47..ef23952641 100644
--- a/reco/detectors/sts/CMakeLists.txt
+++ b/reco/detectors/sts/CMakeLists.txt
@@ -81,7 +81,7 @@ ${Boost_LIBRARY_DIRS}
 
 # -----   Specify library dependences   -------------------
 Set(DEPENDENCIES
-    CbmBase CbmData CbmQaBase CbmRecoBase CbmStsBase 
+    CbmBase CbmData CbmQaBase CbmMvd CbmRecoBase CbmStsBase
 )
 # ---------------------------------------------------------
 
diff --git a/reco/detectors/tof/CMakeLists.txt b/reco/detectors/tof/CMakeLists.txt
index 998a6cd8e6..1f0b6ab60f 100644
--- a/reco/detectors/tof/CMakeLists.txt
+++ b/reco/detectors/tof/CMakeLists.txt
@@ -59,7 +59,7 @@ set(LINKDEF CbmTofRecoLinkDef.h)
 Set(LIBRARY_NAME CbmTofReco)
 Set(DEFINITIONS ${DEFINITIONS} BUILD_TOF_BEAMTIME)
 Set(DEPENDENCIES
-    CbmTofBase CbmRecoBase CbmBase CbmData CbmDisplay Base Minuit
+    CbmTofBase CbmRecoBase CbmBase CbmData CbmFlibFlesTools CbmDisplay Base Minuit
 )
 
 GENERATE_LIBRARY()
diff --git a/sim/detectors/much/CMakeLists.txt b/sim/detectors/much/CMakeLists.txt
index d0094979bb..26e3aef59e 100644
--- a/sim/detectors/much/CMakeLists.txt
+++ b/sim/detectors/much/CMakeLists.txt
@@ -47,7 +47,7 @@ qa/CbmMuchDigitizerQa.cxx
 set(LINKDEF CbmMuchSimLinkDef.h)
 Set(LIBRARY_NAME CbmMuchSim)
 Set(DEPENDENCIES
-    CbmMuchBase CbmBase CbmData Base CbmQaBase
+    CbmMuchBase CbmSimBase CbmQaBase CbmBase CbmData Base
 )
 
 GENERATE_LIBRARY()
diff --git a/sim/detectors/rich/CMakeLists.txt b/sim/detectors/rich/CMakeLists.txt
index b05dbb9ce4..1fc0b0cd7c 100644
--- a/sim/detectors/rich/CMakeLists.txt
+++ b/sim/detectors/rich/CMakeLists.txt
@@ -46,6 +46,6 @@ ENDIF (SSE_FOUND)
 set(LINKDEF  CbmRichSimLinkDef.h)
 
 Set(LIBRARY_NAME CbmRichSim)
-Set(DEPENDENCIES Base CbmData CbmRichBase Gdml)
+Set(DEPENDENCIES Base CbmData CbmSimBase CbmRichBase Gdml)
 
 GENERATE_LIBRARY()
diff --git a/sim/detectors/sts/CMakeLists.txt b/sim/detectors/sts/CMakeLists.txt
index e29af5eb62..786c18bc3b 100644
--- a/sim/detectors/sts/CMakeLists.txt
+++ b/sim/detectors/sts/CMakeLists.txt
@@ -70,7 +70,7 @@ ${Boost_LIBRARY_DIRS}
 
 # -----   Specify library dependences   -------------------
 Set(DEPENDENCIES
-    CbmBase CbmData CbmStsBase
+    CbmStsBase CbmSimBase CbmBase CbmData
 )
 # ---------------------------------------------------------
 
diff --git a/sim/detectors/trd/CMakeLists.txt b/sim/detectors/trd/CMakeLists.txt
index afb0dda8bd..98b6685e22 100644
--- a/sim/detectors/trd/CMakeLists.txt
+++ b/sim/detectors/trd/CMakeLists.txt
@@ -68,7 +68,7 @@ ENDIF (SSE_FOUND)
 set(LINKDEF CbmTrdSimLinkDef.h)
 Set(LIBRARY_NAME CbmTrdSim)
 Set(DEPENDENCIES
-    CbmBase CbmData Base CbmTrdBase
+    CbmBase CbmData Base CbmSimBase CbmTrdBase
 )
 
 GENERATE_LIBRARY()
-- 
GitLab