summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--config.h.in2
-rw-r--r--src/support/command-line.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d66bd22a9..b6d391769 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,7 +24,7 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git)
if(${GIT_VERSION_RESULT})
message(WARNING "Error running git describe to determine version")
else()
- set(CMAKE_PROJECT_VERSION "${CMAKE_PROJECT_VERSION} (${GIT_VERSION})")
+ set(PROJECT_VERSION "${PROJECT_VERSION} (${GIT_VERSION})")
endif()
endif()
diff --git a/config.h.in b/config.h.in
index 21bd41343..6f27ce742 100644
--- a/config.h.in
+++ b/config.h.in
@@ -1 +1 @@
-#cmakedefine CMAKE_PROJECT_VERSION "${CMAKE_PROJECT_VERSION}"
+#cmakedefine PROJECT_VERSION "${PROJECT_VERSION}"
diff --git a/src/support/command-line.cpp b/src/support/command-line.cpp
index e4dff8aad..2bdcd7c71 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 << " version " << CMAKE_PROJECT_VERSION << "\n";
+ std::cout << command << " version " << PROJECT_VERSION << "\n";
exit(0);
});
add("--help",