diff --git a/CMakeLists.txt b/CMakeLists.txt index c8cbaf4f4..52af5b7f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,6 +118,11 @@ endif() message(STATUS "Assuming extension for shared libraries: ${DYNAMIC_EXT}") message(STATUS "Assuming extension for static libraries: ${STATIC_EXT}") +# Python bindings need shared library +if(STORM_PYTHON) + set(BUILD_SHARED_LIBS ON CACHE BOOL "Build the Storm library dynamically" FORCE) +endif() + if(BUILD_SHARED_LIBS) set(LIB_EXT ${DYNAMIC_EXT}) message(STATUS "Build dynamic libraries.")