From 86440457e43cdc9d6c92f15c743cc32cbb5b68a6 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Wed, 3 Feb 2021 19:37:47 +0100 Subject: [PATCH] [CMake] Fixed Swmm include order. --- CMakeLists.txt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a92bee7aa0..e8f4271a2e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,6 +40,12 @@ if(${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.16) endif() option(OGS_USE_PYTHON "Interface with Python" ON) option(OGS_USE_POETRY "Enables automatic Python virtual environment handling with poetry." ON) +if(WIN32) + option(OGS_BUILD_SWMM "Should the SWMM interface be built?" ON) +endif() +if(NOT WIN32 AND OGS_BUILD_SWMM) + message(FATAL_ERROR "OGS_BUILD_SWMM requires Windows!") +endif() # Third-party libraries, names come from Conan package names set(OGS_LIBS @@ -96,14 +102,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) - -if(WIN32) - option(OGS_BUILD_SWMM "Should the SWMM interface be built?" ON) -endif() -if(NOT WIN32 AND OGS_BUILD_SWMM) - message(FATAL_ERROR "OGS_BUILD_SWMM requires Windows!") -endif() - 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) -- GitLab