diff --git a/Applications/Utils/MeshEdit/editMaterialID.cpp b/Applications/Utils/MeshEdit/editMaterialID.cpp
index c999585871d1556472a88f6cee522414c6aea7c8..e7acf362291ed80cb30a8b9ecc372bd5fe5597e1 100644
--- a/Applications/Utils/MeshEdit/editMaterialID.cpp
+++ b/Applications/Utils/MeshEdit/editMaterialID.cpp
@@ -7,6 +7,7 @@
  *              http://www.opengeosys.org/project/license
  */
 
+#include <spdlog/fmt/bundled/ranges.h>
 #include <tclap/CmdLine.h>
 
 #include <memory>
diff --git a/GeoLib/IO/NetCDFRasterReader.cpp b/GeoLib/IO/NetCDFRasterReader.cpp
index 88719bff8801d94370a094e47a9161b903c46fb4..076859b0d65949ad4457de8b826e1c1a667a6681 100644
--- a/GeoLib/IO/NetCDFRasterReader.cpp
+++ b/GeoLib/IO/NetCDFRasterReader.cpp
@@ -9,6 +9,8 @@
 
 #include "GeoLib/IO/NetCDFRasterReader.h"
 
+#include <spdlog/fmt/bundled/ranges.h>
+
 #include <filesystem>
 #include <numeric>
 #ifdef OGS_USE_NETCDF
diff --git a/MaterialLib/Utils/MediaCreation.cpp b/MaterialLib/Utils/MediaCreation.cpp
index 1738f08ad65ec37e694391e2464aaf7491cb24ab..251d4d088c366a349685aee9b05dc8b764cd8b89 100644
--- a/MaterialLib/Utils/MediaCreation.cpp
+++ b/MaterialLib/Utils/MediaCreation.cpp
@@ -7,6 +7,8 @@
  *              http://www.opengeosys.org/project/license
  */
 
+#include <spdlog/fmt/bundled/ranges.h>
+
 #include <range/v3/range/conversion.hpp>
 #include <range/v3/view/adjacent_remove_if.hpp>
 
diff --git a/MeshLib/IO/XDMF/writeXdmf.cpp b/MeshLib/IO/XDMF/writeXdmf.cpp
index 32579d92807e03499938c64a414a85b3dc355ed7..646edbd92d87f306ce8a279bb26e5acd17c47a30 100644
--- a/MeshLib/IO/XDMF/writeXdmf.cpp
+++ b/MeshLib/IO/XDMF/writeXdmf.cpp
@@ -9,6 +9,8 @@
 
 #include "writeXdmf.h"
 
+#include <spdlog/fmt/bundled/ranges.h>
+
 #include <algorithm>
 #include <array>
 #include <fstream>
diff --git a/NumLib/NewtonRaphson.h b/NumLib/NewtonRaphson.h
index 1531d6c1a09f3a06b629b9057c7499512939f9ce..c94c4a746f4fb3693d2cb8331af8ef5e21a2b8a0 100644
--- a/NumLib/NewtonRaphson.h
+++ b/NumLib/NewtonRaphson.h
@@ -10,6 +10,8 @@
 
 #pragma once
 
+#include <spdlog/fmt/bundled/ranges.h>
+
 #include <Eigen/Core>
 #include <optional>
 
diff --git a/NumLib/TimeStepping/Algorithms/FixedTimeStepping.cpp b/NumLib/TimeStepping/Algorithms/FixedTimeStepping.cpp
index 1375781631211ae4ca65849ba0988effe633eb39..19628c1acd1e8752c0d5c30edfbf1887355f102e 100644
--- a/NumLib/TimeStepping/Algorithms/FixedTimeStepping.cpp
+++ b/NumLib/TimeStepping/Algorithms/FixedTimeStepping.cpp
@@ -12,6 +12,8 @@
 
 #include "FixedTimeStepping.h"
 
+#include <spdlog/fmt/bundled/ranges.h>
+
 #include <algorithm>
 #include <cassert>
 #include <limits>
diff --git a/ProcessLib/Output/CreateOutputConfig.cpp b/ProcessLib/Output/CreateOutputConfig.cpp
index 67e97fac82dc0da972049a7e4768196e0514300d..07076b964ac07ecc0d735d145705ddb48ed8ba91 100644
--- a/ProcessLib/Output/CreateOutputConfig.cpp
+++ b/ProcessLib/Output/CreateOutputConfig.cpp
@@ -10,6 +10,8 @@
 
 #include "CreateOutputConfig.h"
 
+#include <spdlog/fmt/bundled/ranges.h>
+
 #include <map>
 
 #include "BaseLib/Algorithm.h"