mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
Emit an error message if building the Python bindings is enabled
but libz3 is built statically. This build combination doesn't work because the Python bindings need a dynamic libz3.
This commit is contained in:
parent
7033ebe6b5
commit
a2cc6d256a
|
@ -217,6 +217,10 @@ add_subdirectory(test)
|
||||||
################################################################################
|
################################################################################
|
||||||
option(BUILD_PYTHON_BINDINGS "Build Python bindings for Z3" OFF)
|
option(BUILD_PYTHON_BINDINGS "Build Python bindings for Z3" OFF)
|
||||||
if (BUILD_PYTHON_BINDINGS)
|
if (BUILD_PYTHON_BINDINGS)
|
||||||
|
if (NOT BUILD_LIBZ3_SHARED)
|
||||||
|
message(FATAL_ERROR "The python bindings will not work with a static libz3. "
|
||||||
|
"You either need to disable BUILD_PYTHON_BINDINGS or enable BUILD_LIBZ3_SHARED")
|
||||||
|
endif()
|
||||||
add_subdirectory(api/python)
|
add_subdirectory(api/python)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue