From 7af9c73327320acf6690b8a46b6c856417f22904 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Thu, 11 Feb 2021 21:42:41 +0100
Subject: [PATCH] Fixed missing xdmf include path.

---
 scripts/cmake/Dependencies.cmake | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/scripts/cmake/Dependencies.cmake b/scripts/cmake/Dependencies.cmake
index a72973afcf9..4df5296eeb1 100644
--- a/scripts/cmake/Dependencies.cmake
+++ b/scripts/cmake/Dependencies.cmake
@@ -149,9 +149,12 @@ if(OGS_USE_XDMF)
         else()
             target_link_libraries(OgsXdmf Boost::boost ${Iconv_LIBRARIES} ZLIB::ZLIB)
         endif()
-        target_include_directories(OgsXdmfCore PUBLIC
-            ${xdmf_SOURCE_DIR}/core
-            ${xdmf_BINARY_DIR}/core
+        target_include_directories(OgsXdmfCore
+            PUBLIC
+                ${xdmf_SOURCE_DIR}/core
+                ${xdmf_BINARY_DIR}/core
+            PRIVATE
+                ${xdmf_SOURCE_DIR}/CMake/VersionSuite
         )
         find_package(LibXml2 REQUIRED) # LibXml2 is a XdmfCore dependency
         target_link_libraries(OgsXdmfCore PUBLIC LibXml2::LibXml2)
-- 
GitLab