This PR removes the BUILD_LIB_ONLY cmake option, and the associated --lib-only configure script option.
If you only want the library, just run make cvc5 instead of make.
option(BUILD_BINDINGS_PYTHON "Build Python bindings based on new C++ API ")
option(BUILD_BINDINGS_JAVA "Build Java bindings based on new C++ API ")
-# Build limitations
-option(BUILD_LIB_ONLY "Only build the library")
-
# Api documentation
cvc5_option(BUILD_DOCS "Build Api documentation")
print_config("Kissat " ${USE_KISSAT} FOUND_SYSTEM ${Kissat_FOUND_SYSTEM})
print_config("LibPoly " ${USE_POLY} FOUND_SYSTEM ${Poly_FOUND_SYSTEM})
print_config("CoCoALib " ${USE_COCOA} FOUND_SYSTEM ${CoCoA_FOUND_SYSTEM})
-message("")
-print_config("Build libcvc5 only " ${BUILD_LIB_ONLY})
if(CVC5_USE_CLN_IMP)
print_config("MP library " "cln" FOUND_SYSTEM ${CLN_FOUND_SYSTEM})
abc_dir=default
glpk_dir=default
-lib_only=default
-
#--------------------------------------------------------------------------#
cmake_opts=""
--dep-path) die "missing argument to $1 (try -h)" ;;
--dep-path=*) dep_path="${dep_path};${1##*=}" ;;
- --lib-only) lib_only=ON ;;
-D*) cmake_opts="${cmake_opts} $1" ;;
-*) die "invalid option '$1' (try -h)";;
&& cmake_opts="$cmake_opts -DGLPK_DIR=$glpk_dir"
[ "$dep_path" != default ] \
&& cmake_opts="$cmake_opts -DCMAKE_PREFIX_PATH=$dep_path"
-[ "$lib_only" != default ] \
- && cmake_opts="$cmake_opts -DBUILD_LIB_ONLY=$lib_only"
[ "$install_prefix" != default ] \
&& cmake_opts="$cmake_opts -DCMAKE_INSTALL_PREFIX=$install_prefix"
[ -n "$program_prefix" ] \
add_subdirectory(base)
add_subdirectory(context)
add_subdirectory(expr)
-if (NOT BUILD_LIB_ONLY)
- add_subdirectory(parser)
-endif()
+add_subdirectory(parser)
add_subdirectory(theory)
add_subdirectory(util)
# target_link_libraries(...) with object libraries for cmake versions <= 3.12.
# Thus, we can only visit main as soon as all dependencies for cvc5 are set up.
-if (NOT BUILD_LIB_ONLY)
- add_subdirectory(main)
-endif()
+add_subdirectory(main)
#-----------------------------------------------------------------------------#
# Install public API headers
#-----------------------------------------------------------------------------#
# Add subdirectories
-if (NOT BUILD_LIB_ONLY)
- add_subdirectory(regress)
-endif()
+add_subdirectory(regress)
add_subdirectory(api EXCLUDE_FROM_ALL)
if(ENABLE_UNIT_TESTING)