Skip to content

Commit

Permalink
fixes for build with z3 (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffrohn authored Dec 5, 2023
1 parent 77059c7 commit f4bd379
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ option (BUILD_Z3
"Should we build the libraries for z3" OFF)

if (BUILD_Z3)
set(Z3_HOME "${PROJECT_SOURCE_DIR}/deps/z3")
if (NOT DEFINED Z3_HOME)
set(Z3_HOME "${PROJECT_SOURCE_DIR}/deps/z3")
endif()
add_subdirectory (z3)
set (SOLVER_BACKEND_LIBS ${SOLVER_BACKEND_LIBS} smt-switch-z3)

Expand Down
4 changes: 4 additions & 0 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ if [ $msat_home != default -a $build_msat = default ]; then
build_msat=ON
fi

if [ $z3_home != default -a $build_z3 = default ]; then
build_z3=ON
fi

if [ $yices2_home != default -a $build_yices2 = default ]; then
build_yices2=ON
fi
Expand Down

0 comments on commit f4bd379

Please sign in to comment.