From de5cc63b6f332e7a10b1ac731d97bb65875460ab Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Wed, 26 May 2021 16:48:45 +0200
Subject: [PATCH] [A/U/PostProcessing] Disable build of non-MPI tools in MPI
 config.

---
 .../Utils/PostProcessing/CMakeLists.txt       | 26 ++++++++++---------
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/Applications/Utils/PostProcessing/CMakeLists.txt b/Applications/Utils/PostProcessing/CMakeLists.txt
index 13bbef5c911..705c220b769 100644
--- a/Applications/Utils/PostProcessing/CMakeLists.txt
+++ b/Applications/Utils/PostProcessing/CMakeLists.txt
@@ -1,14 +1,16 @@
-if(OGS_BUILD_PROCESS_LIE)
-    ogs_add_executable(postLIE postLIE.cpp)
-    target_link_libraries(postLIE GitInfoLib LIECommon tclap)
-    install(TARGETS postLIE RUNTIME DESTINATION bin)
-endif()
+if(NOT OGS_USE_MPI)
+    if(OGS_BUILD_PROCESS_LIE)
+        ogs_add_executable(postLIE postLIE.cpp)
+        target_link_libraries(postLIE GitInfoLib LIECommon tclap)
+        install(TARGETS postLIE RUNTIME DESTINATION bin)
+    endif()
 
-if(OGS_BUILD_GUI)
-    ogs_add_executable(Raster2PointCloud Raster2PointCloud.cpp)
-    target_link_libraries(
-        Raster2PointCloud ApplicationsFileIO BaseLib GitInfoLib tclap
-        VtkVisFilter
-    )
-    install(TARGETS Raster2PointCloud RUNTIME DESTINATION bin)
+    if(OGS_BUILD_GUI)
+        ogs_add_executable(Raster2PointCloud Raster2PointCloud.cpp)
+        target_link_libraries(
+            Raster2PointCloud ApplicationsFileIO BaseLib GitInfoLib tclap
+            VtkVisFilter
+        )
+        install(TARGETS Raster2PointCloud RUNTIME DESTINATION bin)
+    endif()
 endif()
-- 
GitLab