Skip to content
Snippets Groups Projects
Verified Commit 5ea1ef40 authored by Lars Bilke's avatar Lars Bilke
Browse files

Replaced SWMMInterface submodule with CPM.

parent 7544d746
No related branches found
No related tags found
No related merge requests found
[submodule "ThirdParty/SwmmInterface"]
path = ThirdParty/SwmmInterface
url = https://github.com/ufz/SwmmInterface.git
[submodule "ThirdParty/container-maker"]
path = ThirdParty/container-maker
url = https://gitlab.opengeosys.org/ogs/container-maker.git
......
......@@ -25,7 +25,7 @@
#include "MeshLib/Mesh.h"
#include "MeshLib/Node.h"
#include "MeshLib/Properties.h"
#include "ThirdParty/SWMMInterface/swmm5_iface.h"
#include <swmm5_iface.h>
namespace FileIO
{
......
......@@ -4,11 +4,6 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/VtkFbxConverter/CMakeLists.txt
add_subdirectory(VtkFbxConverter)
endif()
if(OGS_BUILD_SWMM)
add_subdirectory(SWMMInterface)
list(APPEND DISABLE_WARNINGS_TARGETS SWMM SwmmInterface)
endif()
foreach(TARGET ${DISABLE_WARNINGS_TARGETS})
target_compile_options(${TARGET} PRIVATE
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:-w>
......
Subproject commit 141e05ae1f419918799d7bf9178ebcd97feb1ed3
......@@ -168,6 +168,18 @@ if(OGS_USE_XDMF)
endif()
endif()
if(OGS_BUILD_SWMM)
CPMAddPackage(
NAME SWMMInterface
GITHUB_REPOSITORY ufz/SwmmInterface
GIT_TAG 141e05ae1f419918799d7bf9178ebcd97feb1ed3
)
if(SWMMInterface_ADDED)
target_include_directories(SwmmInterface SYSTEM PUBLIC ${SWMMInterface_SOURCE_DIR})
list(APPEND DISABLE_WARNINGS_TARGETS SWMM SwmmInterface)
endif()
endif()
# Disable warnings
foreach(TARGET ${DISABLE_WARNINGS_TARGETS})
target_compile_options(${TARGET} PRIVATE
......
......@@ -3,9 +3,6 @@ if(NOT IS_GIT_REPO)
endif()
# This file initializes the required submodules
if(OGS_BUILD_SWMM)
list(APPEND REQUIRED_SUBMODULES ThirdParty/SwmmInterface)
endif()
execute_process(
COMMAND ${GIT_EXECUTABLE} submodule status
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment