Skip to content
Snippets Groups Projects
Commit ebaae6ab authored by Lars Bilke's avatar Lars Bilke
Browse files

[cli] Added help string on CMake args for `ogs --help`.

parent d0ada518
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,9 @@ int main(int argc, char* argv[]) ...@@ -57,7 +57,9 @@ int main(int argc, char* argv[])
"See accompanying file LICENSE.txt or " "See accompanying file LICENSE.txt or "
"http://www.opengeosys.org/project/license\n" "http://www.opengeosys.org/project/license\n"
"version: " + "version: " +
BaseLib::BuildInfo::git_describe, BaseLib::BuildInfo::git_describe + "\n" +
"CMake arguments: " +
BaseLib::BuildInfo::cmake_args,
' ', ' ',
BaseLib::BuildInfo::git_describe); BaseLib::BuildInfo::git_describe);
......
...@@ -29,6 +29,7 @@ namespace BuildInfo ...@@ -29,6 +29,7 @@ namespace BuildInfo
const std::string git_describe("@GIT_DESCRIBE@"); const std::string git_describe("@GIT_DESCRIBE@");
const std::string ogs_version("@OGS_VERSION@"); 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 source_path("@CMAKE_CURRENT_SOURCE_DIR@");
const std::string data_path("@Data_SOURCE_DIR@"); const std::string data_path("@Data_SOURCE_DIR@");
......
...@@ -32,6 +32,7 @@ namespace BuildInfo ...@@ -32,6 +32,7 @@ namespace BuildInfo
extern BASELIB_EXPORT const std::string git_describe; extern BASELIB_EXPORT const std::string git_describe;
extern BASELIB_EXPORT const std::string ogs_version; 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 source_path;
extern BASELIB_EXPORT const std::string data_path; extern BASELIB_EXPORT const std::string data_path;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment