From 624d3899aea656b2fe120c1e2d3124038d1a76ef Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Fri, 2 Jul 2021 10:42:55 +0200
Subject: [PATCH] [cmake] Removed option OGS_NO_EXTERNAL_LIBS.

---
 CMakeLists.txt                                              | 1 -
 scripts/cmake/Find.cmake                                    | 5 -----
 web/content/docs/devguide/advanced/configuration-options.md | 1 -
 3 files changed, 7 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 50dadd24481..37d3ae3a470 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -97,7 +97,6 @@ if((CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC) AND GPROF_PATH)
 endif() # GCC AND GPROF_PATH
 
 option(OGS_BUILD_GUI "Should the Data Explorer be built?" OFF)
-option(OGS_NO_EXTERNAL_LIBS "Builds OGS without any external dependencies." OFF)
 option(OGS_INSITU "Builds OGS with insitu visualization capabilities." OFF)
 option(OGS_USE_LIS "Use Lis" OFF)
 option(OGS_USE_PETSC "Use PETSc routines" OFF)
diff --git a/scripts/cmake/Find.cmake b/scripts/cmake/Find.cmake
index fac0eeacbfd..25387f83a50 100644
--- a/scripts/cmake/Find.cmake
+++ b/scripts/cmake/Find.cmake
@@ -72,11 +72,6 @@ if(OGS_USE_MFRONT)
     endif()
 endif()
 
-# Do not search for libs if this option is set
-if(OGS_NO_EXTERNAL_LIBS)
-    return()
-endif() # OGS_NO_EXTERNAL_LIBS
-
 find_package(OpenMP)
 if(OPENMP_FOUND)
     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
diff --git a/web/content/docs/devguide/advanced/configuration-options.md b/web/content/docs/devguide/advanced/configuration-options.md
index 317a5fb1cdf..72aeb6dc3e1 100644
--- a/web/content/docs/devguide/advanced/configuration-options.md
+++ b/web/content/docs/devguide/advanced/configuration-options.md
@@ -21,7 +21,6 @@ CMake switches to enable / disable parts of OGS.
 - `OGS_BUILD_GUI` - Builds the Data Explorer. *Defaults* to *OFF*.
 - `OGS_BUILD_TESTING` - Builds the test executables. *Defaults* to *ON*.
 - `OGS_BUILD_UTILS` - Builds several utilities.
-- `OGS_NO_EXTERNAL_LIBS` - Disables all external optional dependencies.
 - `OGS_BUILD_PROCESS_X` - For enabling/disabling compilation of process `X`.
   Run the CMake-Gui to see a list of processes.
 - `OGS_BUILD_PROCESSES` - A `;`-separated list specifying processes to build. *Defaults* to an *empty string*. This will alter the `OGS_BUILD_PROCESS_X`-options. For e.g. building just the two processes `HT` and `LIE`: `-DOGS_BUILD_PROCESSES="HT;LIE"`. Setting this variable back to an empty string **does not reset** the `OGS_BUILD_PROCESS_X`-options. You can also set it to *OFF* to disable all processes.
-- 
GitLab