From d2153ba59789ea87f9b0476e363e814f4bcaa428 Mon Sep 17 00:00:00 2001
From: Christoph Lehmann <christoph.lehmann@ufz.de>
Date: Thu, 1 Sep 2022 15:32:43 +0200
Subject: [PATCH] Added new dependency Boost MP11

---
 MaterialLib/SolidModels/MFront/CMakeLists.txt | 1 +
 Tests/CMakeLists.txt                          | 1 +
 scripts/cmake/Dependencies.cmake              | 7 +++++++
 3 files changed, 9 insertions(+)

diff --git a/MaterialLib/SolidModels/MFront/CMakeLists.txt b/MaterialLib/SolidModels/MFront/CMakeLists.txt
index d66af6e9aae..21ae36244a8 100644
--- a/MaterialLib/SolidModels/MFront/CMakeLists.txt
+++ b/MaterialLib/SolidModels/MFront/CMakeLists.txt
@@ -26,6 +26,7 @@ mfront_behaviours_check_library(
 target_link_libraries(
     MaterialLib_SolidModels_MFront PUBLIC BaseLib NumLib MFrontGenericInterface
                                           OgsMFrontBehaviour
+                                          Boost::mp11
     PRIVATE MathLib MeshLib ParameterLib
 )
 
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 391e83fce9e..7aff8c57d37 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -79,6 +79,7 @@ target_link_libraries(
             TestInfoLib
             VTK::FiltersGeneral
             VTK::FiltersSources
+            Boost::mp11 # TODO move OGSMFrontThermodynamicForcesView to MathLib?
             $<$<TARGET_EXISTS:Threads::Threads>:Threads::Threads>
             $<$<TARGET_EXISTS:LIE>:LIE>
             $<$<TARGET_EXISTS:TH2M>:TH2M>
diff --git a/scripts/cmake/Dependencies.cmake b/scripts/cmake/Dependencies.cmake
index c618ec071e2..5c174b73f02 100644
--- a/scripts/cmake/Dependencies.cmake
+++ b/scripts/cmake/Dependencies.cmake
@@ -357,6 +357,13 @@ CPMAddPackage(
     EXCLUDE_FROM_ALL YES
 )
 
+CPMFindPackage(
+    NAME boost_mp11
+    VERSION 1.79.0
+    GITHUB_REPOSITORY boostorg/mp11
+    GIT_TAG boost-1.79.0
+)
+
 if(OGS_BUILD_TESTING OR OGS_BUILD_UTILS)
     CPMAddPackage(
         NAME vtkdiff GITHUB_REPOSITORY ufz/vtkdiff
-- 
GitLab