From 8d4db9fb86c3b80df3eaa0d8e5eb379d081c8399 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Wed, 8 Jan 2020 12:17:48 -0800 Subject: Remove git dependency (#2578) Only use git to set version number if .git directory is present. This means that for release archives the VERSION string will be used as-is. Fixes #2563 --- src/support/command-line.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/support/command-line.cpp b/src/support/command-line.cpp index 0986a49ff..e6cd352bb 100644 --- a/src/support/command-line.cpp +++ b/src/support/command-line.cpp @@ -58,7 +58,7 @@ Options::Options(const std::string& command, const std::string& description) "Output version information and exit", Arguments::Zero, [command](Options*, const std::string&) { - std::cout << command << " " << BINARYEN_VERSION_INFO << "\n"; + std::cout << command << " " << CMAKE_PROJECT_VERSION << "\n"; exit(0); }); add("--help", -- cgit v1.2.3