From 53f885bb144964b077356ad5d0944198db5200cd Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Tue, 9 Jun 2020 11:32:28 +0200
Subject: [PATCH] [ChemLib] Exclude PhreeqcIO.cpp from Unity builds.

---
 ChemistryLib/CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ChemistryLib/CMakeLists.txt b/ChemistryLib/CMakeLists.txt
index 12ccb9b2e20..77d2b40bb3a 100644
--- a/ChemistryLib/CMakeLists.txt
+++ b/ChemistryLib/CMakeLists.txt
@@ -11,3 +11,6 @@ include(GenerateExportHeader)
 generate_export_header(ChemistryLib)
 
 target_link_libraries(ChemistryLib PUBLIC iphreeqc PRIVATE NumLib spdlog::spdlog)
+
+# See https://github.com/ufz/ogs/pull/2982#issuecomment-641086788
+set_source_files_properties(PhreeqcIO.cpp PROPERTIES SKIP_UNITY_BUILD_INCLUSION TRUE)
-- 
GitLab