Skip to content

Commit

Permalink
Add warning for static libraries and python bindings.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsorby committed Nov 7, 2024
1 parent 07ff6cd commit fa629f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ if(LIBCELLML_BINDINGS_PYTHON) # Or any other bindings that use SWIG.
endif()

if(LIBCELLML_BINDINGS_PYTHON)
if(NOT LIBCELLML_BUILD_SHARED)
message(WARNING "The Python bindings are not intended to work with static libraries.")
endif()
add_subdirectory(python)
endif()

Expand Down

0 comments on commit fa629f7

Please sign in to comment.