From 6f16bf8d15721adcc4a4679d116b298878657f1e Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Fri, 5 Nov 2021 14:11:00 +0100
Subject: [PATCH] [cmake] Enable utils building on petsc config.

---
 Applications/Utils/FileConverter/CMakeLists.txt      | 4 ----
 Applications/Utils/MeshEdit/CMakeLists.txt           | 4 ----
 Applications/Utils/MeshGeoTools/CMakeLists.txt       | 4 ----
 Applications/Utils/ModelPreparation/CMakeLists.txt   | 4 ----
 Applications/Utils/PostProcessing/CMakeLists.txt     | 4 ----
 Applications/Utils/SimpleMeshCreation/CMakeLists.txt | 4 ----
 6 files changed, 24 deletions(-)

diff --git a/Applications/Utils/FileConverter/CMakeLists.txt b/Applications/Utils/FileConverter/CMakeLists.txt
index e5823db69ff..cf25d02d4b7 100644
--- a/Applications/Utils/FileConverter/CMakeLists.txt
+++ b/Applications/Utils/FileConverter/CMakeLists.txt
@@ -1,7 +1,3 @@
-if(OGS_USE_MPI)
-    return()
-endif()
-
 set(TOOLS
     convertGEO
     generateMatPropsFromMatID
diff --git a/Applications/Utils/MeshEdit/CMakeLists.txt b/Applications/Utils/MeshEdit/CMakeLists.txt
index 54a64aaac77..1c13bc9ef78 100644
--- a/Applications/Utils/MeshEdit/CMakeLists.txt
+++ b/Applications/Utils/MeshEdit/CMakeLists.txt
@@ -1,7 +1,3 @@
-if(OGS_USE_MPI)
-    return()
-endif()
-
 set(TOOLS
     AddElementQuality
     AddFaultToVoxelGrid
diff --git a/Applications/Utils/MeshGeoTools/CMakeLists.txt b/Applications/Utils/MeshGeoTools/CMakeLists.txt
index df66c700fbe..de10ebe24ec 100644
--- a/Applications/Utils/MeshGeoTools/CMakeLists.txt
+++ b/Applications/Utils/MeshGeoTools/CMakeLists.txt
@@ -1,7 +1,3 @@
-if(OGS_USE_MPI)
-    return()
-endif()
-
 set(TOOLS
     AssignRasterDataToMesh
     computeSurfaceNodeIDsInPolygonalRegion
diff --git a/Applications/Utils/ModelPreparation/CMakeLists.txt b/Applications/Utils/ModelPreparation/CMakeLists.txt
index 3ab33a1d0ab..8536e16a724 100644
--- a/Applications/Utils/ModelPreparation/CMakeLists.txt
+++ b/Applications/Utils/ModelPreparation/CMakeLists.txt
@@ -1,9 +1,5 @@
 add_subdirectory(PartitionMesh)
 
-if(OGS_USE_MPI)
-    return()
-endif()
-
 set(TOOLS ComputeNodeAreasFromSurfaceMesh convertVtkDataArrayToVtkDataArray
           createNeumannBc scaleProperty
 )
diff --git a/Applications/Utils/PostProcessing/CMakeLists.txt b/Applications/Utils/PostProcessing/CMakeLists.txt
index e8aa1a36cbb..13bbef5c911 100644
--- a/Applications/Utils/PostProcessing/CMakeLists.txt
+++ b/Applications/Utils/PostProcessing/CMakeLists.txt
@@ -1,7 +1,3 @@
-if(OGS_USE_MPI)
-    return()
-endif()
-
 if(OGS_BUILD_PROCESS_LIE)
     ogs_add_executable(postLIE postLIE.cpp)
     target_link_libraries(postLIE GitInfoLib LIECommon tclap)
diff --git a/Applications/Utils/SimpleMeshCreation/CMakeLists.txt b/Applications/Utils/SimpleMeshCreation/CMakeLists.txt
index 9b0b9fd3475..26ec45f52fb 100644
--- a/Applications/Utils/SimpleMeshCreation/CMakeLists.txt
+++ b/Applications/Utils/SimpleMeshCreation/CMakeLists.txt
@@ -1,7 +1,3 @@
-if(OGS_USE_MPI)
-    return()
-endif()
-
 set(TOOLS generateStructuredMesh)
 if(OGS_BUILD_GUI)
     list(APPEND TOOLS createMeshElemPropertiesFromASCRaster)
-- 
GitLab