Skip to content
Snippets Groups Projects
Forked from ogs / ogs
17677 commits behind the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
BuildInfo.cpp.in 1.35 KiB
/**
 * \brief  Build information.
 *
 * \copyright
 * Copyright (c) 2012-2017, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#include "BaseLib/BuildInfo.h"

namespace BaseLib
{

namespace BuildInfo
{

    const std::string build_timestamp("@BUILD_TIMESTAMP@");

    const std::string cmake_cxx_compiler("@CMAKE_CXX_COMPILER@");
    const std::string cmake_cxx_flags("@CMAKE_CXX_FLAGS@");
    const std::string cmake_cxx_flags_release("@CMAKE_CXX_FLAGS_RELEASE@");
    const std::string cmake_cxx_flags_debug("@CMAKE_CXX_FLAGS_DEBUG@");

    const std::string git_version_sha1("@GIT_SHA1@");
    const std::string git_version_sha1_short("@GIT_SHA1_SHORT@");

    const std::string git_describe("@GIT_DESCRIBE@");
    const std::string ogs_version("@OGS_VERSION@");

    const std::string source_path("@CMAKE_CURRENT_SOURCE_DIR@");
    const std::string geo_xml_schema_path("@CMAKE_CURRENT_SOURCE_DIR@/GeoLib/IO/XmlIO");
    const std::string app_xml_schema_path("@CMAKE_CURRENT_SOURCE_DIR@/Applications/FileIO/XmlIO");
    const std::string data_path("@Data_SOURCE_DIR@");
    const std::string data_binary_path("@Data_BINARY_DIR@");
    const std::string tests_tmp_path("@PROJECT_BINARY_DIR@/Tests/");

}
}