diff --git a/scripts/cmake/Dependencies.cmake b/scripts/cmake/Dependencies.cmake
index 5a37639f28a2925322f410b8aba7c2362dea0901..f891daaf0e8056a5c388a858d10e85aa20606265 100644
--- a/scripts/cmake/Dependencies.cmake
+++ b/scripts/cmake/Dependencies.cmake
@@ -181,6 +181,7 @@ if(OGS_BUILD_SWMM)
     CPMAddPackage(
         NAME SWMMInterface GITHUB_REPOSITORY ufz/SwmmInterface
         GIT_TAG 141e05ae1f419918799d7bf9178ebcd97feb1ed3
+        OPTIONS "BUILD_SHARED_LIBS OFF"
     )
     if(SWMMInterface_ADDED)
         target_include_directories(
diff --git a/scripts/cmake/MetisSetup.cmake b/scripts/cmake/MetisSetup.cmake
index 6c6fde90caefe857442f3432554b4e7a8138dd0a..73131168b269d1e5bec229e4c46251aff56d0af7 100644
--- a/scripts/cmake/MetisSetup.cmake
+++ b/scripts/cmake/MetisSetup.cmake
@@ -10,7 +10,10 @@ include(${GKLIB_PATH}/GKlibSystem.cmake)
 
 # Metis library
 file(GLOB _metis_sources ${metis_SOURCE_DIR}/libmetis/*.c)
-ogs_add_library(ogs_metis ${GKlib_sources} ${_metis_sources})
+if(WIN32)
+    set(_metis_static STATIC)
+endif()
+ogs_add_library(ogs_metis ${_metis_static} ${GKlib_sources} ${_metis_sources})
 target_compile_definitions(ogs_metis PUBLIC USE_GKREGEX)
 target_include_directories(
     ogs_metis PUBLIC ${metis_SOURCE_DIR}/GKlib ${metis_SOURCE_DIR}/include