mirror of
https://github.com/Z3Prover/z3
synced 2025-12-18 18:28:33 +00:00
Disable executable and test builds when not building libz3 core
When Z3_BUILD_LIBZ3_CORE=OFF, automatically disable Z3_BUILD_EXECUTABLE and Z3_BUILD_TEST_EXECUTABLES to avoid build/install errors. Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
d65415b31a
commit
74501e2c48
1 changed files with 2 additions and 2 deletions
|
|
@ -331,7 +331,7 @@ endif()
|
||||||
################################################################################
|
################################################################################
|
||||||
cmake_dependent_option(Z3_BUILD_EXECUTABLE
|
cmake_dependent_option(Z3_BUILD_EXECUTABLE
|
||||||
"Build the z3 executable" ON
|
"Build the z3 executable" ON
|
||||||
"CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR" OFF)
|
"CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR;Z3_BUILD_LIBZ3_CORE" OFF)
|
||||||
|
|
||||||
if (Z3_BUILD_EXECUTABLE)
|
if (Z3_BUILD_EXECUTABLE)
|
||||||
add_subdirectory(shell)
|
add_subdirectory(shell)
|
||||||
|
|
@ -343,7 +343,7 @@ endif()
|
||||||
|
|
||||||
cmake_dependent_option(Z3_BUILD_TEST_EXECUTABLES
|
cmake_dependent_option(Z3_BUILD_TEST_EXECUTABLES
|
||||||
"Build test executables" ON
|
"Build test executables" ON
|
||||||
"CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR" OFF)
|
"CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR;Z3_BUILD_LIBZ3_CORE" OFF)
|
||||||
|
|
||||||
|
|
||||||
if (Z3_BUILD_TEST_EXECUTABLES)
|
if (Z3_BUILD_TEST_EXECUTABLES)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue