print_config("Python2 " ${USE_PYTHON2})
message("")
print_config("ABC " ${USE_ABC})
-print_config("CryptoMiniSat " ${USE_CRYPTOMINISAT})
+print_config("CryptoMiniSat " ${USE_CRYPTOMINISAT} FOUND_SYSTEM ${CryptoMiniSat_FOUND_SYSTEM})
print_config("GLPK " ${USE_GLPK})
-print_config("Kissat " ${USE_KISSAT})
-print_config("LibPoly " ${USE_POLY})
-print_config("CoCoALib " ${USE_COCOA})
+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")
+ print_config("MP library " "cln" FOUND_SYSTEM ${CLN_FOUND_SYSTEM})
else()
- print_config("MP library " "gmp")
+ print_config("MP library " "gmp" FOUND_SYSTEM ${GMP_FOUND_SYSTEM})
endif()
print_config("Editline " ${USE_EDITLINE})
message("")
message("${Blue}${msg}${ResetColor}")
endmacro()
-# Helper to print the configuration of a 2-valued or 3-valued option 'var'
-# with prefix 'str'.
+# Helper to print the configuration of a 2-valued or 3-valued option 'var' with
+# prefix 'str'. Optionally takes a `FOUND_SYSTEM` argument that is used to
+# indicate when a given dependency is built as part of the cvc5 build.
function(print_config str var)
+ set(options)
+ set(oneValueArgs FOUND_SYSTEM)
+ set(multiValueArgs)
+ cmake_parse_arguments(ARGS "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
+
if("${var}" STREQUAL "ON")
set(OPT_VAL_STR "on")
elseif("${var}" STREQUAL "OFF" OR "${var}" STREQUAL "IGNORE")
else()
set(OPT_VAL_STR "${var}")
endif()
- message("${Blue}${str}: ${Green}${OPT_VAL_STR}${ResetColor}")
+
+ if("${ARGS_FOUND_SYSTEM}" STREQUAL "TRUE")
+ set(OPT_FOUND_SYSTEM_STR " (system)")
+ elseif("${ARGS_FOUND_SYSTEM}" STREQUAL "FALSE")
+ set(OPT_FOUND_SYSTEM_STR " (local)")
+ else()
+ set(OPT_FOUND_SYSTEM_STR "")
+ endif()
+
+ message("${Blue}${str}: ${Green}${OPT_VAL_STR}${OPT_FOUND_SYSTEM_STR}${ResetColor}")
endfunction()