/***************************************************************************//**
 *
 * \file config/version.cpp
 *
 * \author David Juhasz (david.juhasz@tuwien.ac.at)
 *
 * \date 2017
 *
 * \brief Implementation for rosa/config/version.h.
 *
 ******************************************************************************/

#include "rosa/config/version.h"

#include <sstream>

namespace rosa {

std::string library_string(void) {
  return PACKAGE_STRING;
}

std::string version(void) {
  return PACKAGE_VERSION;
}

std::string verbose_version(void) {
  std::stringstream SS;
  SS << PACKAGE_STRING << std::endl
     << "Built by " << CMAKE_GENERATOR
     << " with " << CMAKE_CXX_COMPILER_ID
     << ' ' << CMAKE_CXX_COMPILER_VERSION << std::endl
     << "on a(n) " << CMAKE_SYSTEM << " system." << std::endl
     << "Build date: " << BUILD_DATE << std::endl
     << "Package name: " << PACKAGE_NAME << std::endl
     << "Package version: " << PACKAGE_VERSION << std::endl
     << "Report issues: " << PACKAGE_BUGREPORT << std::endl;
  return SS.str();
}

} // End namespace rosa

