From ebaae6ab761951fb9d5b2acf9e6e1771016d535e Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Tue, 18 Sep 2018 11:44:35 +0200 Subject: [PATCH] [cli] Added help string on CMake args for `ogs --help`. --- Applications/CLI/ogs.cpp | 4 +++- BaseLib/BuildInfo.cpp.in | 1 + BaseLib/BuildInfo.h | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Applications/CLI/ogs.cpp b/Applications/CLI/ogs.cpp index 87694bcc50a..a6b5b628b6f 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 0be2b3e0f4f..f3b5b2059f6 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 b8b66a396ef..7a9560081ef 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; -- GitLab