From 715c07364f844702eece0406215e8a52eb4e9038 Mon Sep 17 00:00:00 2001 From: Hugh Sorby Date: Wed, 6 Nov 2024 21:03:08 +1300 Subject: [PATCH] Only add sotaeget if shared libs. --- src/bindings/python/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/python/CMakeLists.txt b/src/bindings/python/CMakeLists.txt index c98abd754f..966dc02647 100644 --- a/src/bindings/python/CMakeLists.txt +++ b/src/bindings/python/CMakeLists.txt @@ -67,7 +67,7 @@ set_source_files_properties(${SWIG_INTERFACE_SRCS} PROPERTIES set(SETUP_PY_PACKAGE_FILES "'\${TARGET_FILE_NAME_cellml}'") list(APPEND FINALISE_PYTHON_BINDINGS_ARGUMENTS -DTARGET_FILE_NAME_cellml=$) -if (UNIX AND NOT APPLE) +if (UNIX AND NOT APPLE AND LIBCELLML_BUILD_SHARED) list(APPEND SETUP_PY_PACKAGE_FILES "'\${TARGET_SONAME_FILE_NAME_cellml}'") list(APPEND FINALISE_PYTHON_BINDINGS_ARGUMENTS -DTARGET_SONAME_FILE_NAME_cellml=$) set(_GENERATOR_EXPRESSION_LIBCELLML_SONAME $)