diff --git a/Applications/ApplicationsLib/ProjectData.cpp b/Applications/ApplicationsLib/ProjectData.cpp
index 053e62e7882f539002979dfb09e6f4d96ee95073..279749448d1a3f028c5850029e89e5fc46762343 100644
--- a/Applications/ApplicationsLib/ProjectData.cpp
+++ b/Applications/ApplicationsLib/ProjectData.cpp
@@ -1014,6 +1014,7 @@ void ProjectData::parseChemicalSystem(
     if (!config)
         return;
 
+#ifdef OGS_BUILD_PROCESS_COMPONENTTRANSPORT
     INFO(
         "Ready for initializing interface to a chemical solver for water "
         "chemistry calculation.");
@@ -1048,7 +1049,10 @@ void ProjectData::parseChemicalSystem(
         }
     }
     else
+#endif
     {
+        (void)output_directory;
+
         OGS_FATAL(
             "The specified type of the process to be solved is not component "
             "transport process so that water chemistry calculation could not "