config_query_list CM_BUILD_TYPE 'which build type?' Release Debug RelWithDebInfo #if is_depends_enabled $SPELL extra-cmake-modules;then config_query_option CM_TESTS 'build tests?' n "-DBUILD_TESTING=1" "-DBUILD_TESTING=0" #fi # Default to Ninja cmake generator if it's installed, otherwise the standard Unix way if spell_ok ninja-build-system; then message "${MESSAGE_COLOR}${SPELL_COLOR}${SPELL}${DEFAULT_COLOR}${MESSAGE_COLOR} is using ${SPELL_COLOR}ninja${DEFAULT_COLOR}${MESSAGE_COLOR} for CMAKE GENERATOR." && CMAKE_GEN='Ninja' else message "${MESSAGE_COLOR}${SPELL_COLOR}${SPELL}${DEFAULT_COLOR}${MESSAGE_COLOR} is using \"Unix Makefiles\" for CMAKE GENERATOR." && CMAKE_GEN='Unix Makefiles' fi && persistent_add CMAKE_GEN