diff --git a/Applications/CLI/ogs.cpp b/Applications/CLI/ogs.cpp index 87694bcc50aa67da5077c77b5e3b087df8213583..a6b5b628b6fd6d2865f96fd397aa3412f46a89bd 100644 --- a/Applications/CLI/ogs.cpp +++ b/Applications/CLI/ogs.cpp @@ -57,7 +57,9 @@ int main(int argc, char* argv[]) "See accompanying file LICENSE.txt or " "http://www.opengeosys.org/project/license\n" "version: " + - BaseLib::BuildInfo::git_describe, + BaseLib::BuildInfo::git_describe + "\n" + + "CMake arguments: " + + BaseLib::BuildInfo::cmake_args, ' ', BaseLib::BuildInfo::git_describe); diff --git a/BaseLib/BuildInfo.cpp.in b/BaseLib/BuildInfo.cpp.in index 0be2b3e0f4faa2c593b043d8b36919e3826068c5..f3b5b2059f6e62e94070fddd13b80a1ae699e2f1 100644 --- a/BaseLib/BuildInfo.cpp.in +++ b/BaseLib/BuildInfo.cpp.in @@ -29,6 +29,7 @@ namespace BuildInfo const std::string git_describe("@GIT_DESCRIBE@"); const std::string ogs_version("@OGS_VERSION@"); + const std::string cmake_args("@CMAKE_ARGS_ESCAPED@"); const std::string source_path("@CMAKE_CURRENT_SOURCE_DIR@"); const std::string data_path("@Data_SOURCE_DIR@"); diff --git a/BaseLib/BuildInfo.h b/BaseLib/BuildInfo.h index b8b66a396ef463c2d300e7a7fc9f250915a70a26..7a9560081efb05babd0d6d877d9836cd5bd19421 100644 --- a/BaseLib/BuildInfo.h +++ b/BaseLib/BuildInfo.h @@ -32,6 +32,7 @@ namespace BuildInfo extern BASELIB_EXPORT const std::string git_describe; extern BASELIB_EXPORT const std::string ogs_version; + extern BASELIB_EXPORT const std::string cmake_args; extern BASELIB_EXPORT const std::string source_path; extern BASELIB_EXPORT const std::string data_path;