Fix up optional dep on cmake to prevent it reporting integrity issues