From e0e5991c960e678e2063a9cfa01ce9873f29f101 Mon Sep 17 00:00:00 2001 From: jcschaff Date: Tue, 18 Jun 2024 16:28:53 -0400 Subject: [PATCH] settings for statically linked dependencies --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bb050d33..ef221642 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,9 @@ option(OPTION_USE_ZLIB "Build with Zlib support" ON) option(OPTION_USE_LIBTIFF "Build with LibTiff support" OFF) option(OPTION_USE_ICONV "Build with Libiconv support" OFF) +# need to statically link everything for the python bindings and standalone solvers +set(CMAKE_FIND_LIBRARY_SUFFIXES ".a") +set(BUILD_SHARED_LIBS OFF) if (OPTION_TARGET_PYTHON_BINDING) project(