Commit 266ff5ee authored by Kevin Funk's avatar Kevin Funk

CMake: Generate & install graphviz_version.h

Don't encode build date stamp in it to be able to create reproducable
builds. Slightly different to the autotools version:

Here's the diff to to the autotools based version:
```
---
/home/kfunk/opt/graphviz-autotools/include/graphviz/graphviz_version.h
2017-06-13 22:16:17.447416244 +0200
+++ graphviz_version.h  2017-06-13 22:27:29.343298754 +0200
@@ -2,7 +2,7 @@
 #define GVPLUGIN_VERSION 6
 #define PACKAGE_BUGREPORT "http://www.graphviz.org/"
 #define PACKAGE_NAME "graphviz"
-#define PACKAGE_STRING "graphviz 2.41.20170613.1957"
+#define PACKAGE_STRING "graphviz 2.41.0"
 #define PACKAGE_TARNAME "graphviz"
 #define PACKAGE_URL ""
-#define PACKAGE_VERSION "2.41.20170613.1957"
+#define PACKAGE_VERSION "2.41.0"
```
parent 8f1d3016
......@@ -96,6 +96,10 @@ endif()
# ============================ Set Graphviz version ============================
set(GRAPHVIZ_VERSION_MAJOR 2)
set(GRAPHVIZ_VERSION_MINOR 41)
set(GRAPHVIZ_VERSION_PATCH 0)
set(GRAPHVIZ_VERSION_STRING "${GRAPHVIZ_VERSION_MAJOR}.${GRAPHVIZ_VERSION_MINOR}.${GRAPHVIZ_VERSION_PATCH}")
configure_file(graphviz_version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/graphviz_version.h @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/graphviz_version.h DESTINATION ${HEADER_INSTALL_DIR})
# Set GRAPHVIZ_VERSION_BUILD to time of last commit, or to 0 if that fails.
execute_process(
......
#define GVPLUGIN_CONFIG_FILE "config@GRAPHVIZ_PLUGIN_VERSION@"
#define GVPLUGIN_VERSION @GRAPHVIZ_PLUGIN_VERSION@
#define PACKAGE_BUGREPORT "http://www.graphviz.org/"
#define PACKAGE_NAME "graphviz"
#define PACKAGE_STRING "graphviz @GRAPHVIZ_VERSION_STRING@"
#define PACKAGE_TARNAME "graphviz"
#define PACKAGE_URL ""
#define PACKAGE_VERSION "@GRAPHVIZ_VERSION_STRING@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment