#!/usr/bin/env modbuild

pbuild::configure() {
	local configure_args=()
	case "${OS}" in
		Linux )
			configure_args+=( "-DENABLE_DKS=ON" )
			;;
	esac
	cmake \
		-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
		-DCMAKE_BUILD_TYPE=RELEASE \
		"${configure_args[@]}" \
		"${MODULE_SRCDIR}" || std::die 1 "cmake failed"
}

pbuild::add_to_group 'OPAL'
pbuild::set_supported_compilers 'gcc/4.8' 'gcc/5.4'
pbuild::make_all

