summaryrefslogtreecommitdiffstats
path: root/CMakeScripts/inkscape-version.cmake
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-06-13 21:59:45 +0000
committerCampbell Barton <ideasman42@gmail.com>2011-06-13 21:59:45 +0000
commit4f20cb327f420917d761b0fa41e50cb9d4eb1a19 (patch)
treed880131c8f8b42ac122205857f6fb67949b654f4 /CMakeScripts/inkscape-version.cmake
parentcmake: fix for install target (diff)
downloadinkscape-4f20cb327f420917d761b0fa41e50cb9d4eb1a19.tar.gz
inkscape-4f20cb327f420917d761b0fa41e50cb9d4eb1a19.zip
cmake:
- added option WITH_DBUS (currently uses hard coded paths) - remove duplicate version variable. (bzr r10297)
Diffstat (limited to 'CMakeScripts/inkscape-version.cmake')
-rw-r--r--CMakeScripts/inkscape-version.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/CMakeScripts/inkscape-version.cmake b/CMakeScripts/inkscape-version.cmake
index 7e53f710b..1d98a5799 100644
--- a/CMakeScripts/inkscape-version.cmake
+++ b/CMakeScripts/inkscape-version.cmake
@@ -7,7 +7,6 @@
# We should extract the version from build.xml
# but for now just hard code
-set(INKSCAPE_VERSION "0.48+devel")
set(INKSCAPE_REVISION "unknown")
if(EXISTS ${INKSCAPE_SOURCE_DIR}/.bzr/)
@@ -19,8 +18,13 @@ endif()
file(WRITE
${INKSCAPE_BINARY_DIR}/src/inkscape-version.cpp.txt
+ # unlike autoconf, include config.h
+ "#ifdef HAVE_CONFIG_H\n"
+ "# include <config.h>\n"
+ "#endif\n"
+ "\n"
"namespace Inkscape {\n"
- " char const *version_string = \"${INKSCAPE_VERSION} ${INKSCAPE_REVISION}\";\n"
+ " char const *version_string = VERSION \" \" \"${INKSCAPE_REVISION}\";\n"
"}\n")
# Copy the file to the final header only if the version changes