summaryrefslogtreecommitdiffstats
path: root/CMakeScripts
diff options
context:
space:
mode:
authorJoshua L. Blocher <verbalshadow@gmail.com>2008-03-31 22:50:24 +0000
committerverbalshadow <verbalshadow@users.sourceforge.net>2008-03-31 22:50:24 +0000
commita3651a7e9fc27c8d9901970f3b682fee4aafa00c (patch)
tree28050d49b9284b4f9974d88357a134b670ca8e9d /CMakeScripts
parenttest commit (diff)
downloadinkscape-a3651a7e9fc27c8d9901970f3b682fee4aafa00c.tar.gz
inkscape-a3651a7e9fc27c8d9901970f3b682fee4aafa00c.zip
Cmake: Generate inkscape_version.h
(bzr r5286)
Diffstat (limited to 'CMakeScripts')
-rw-r--r--CMakeScripts/ConfigInkscapeDepends.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeScripts/ConfigInkscapeDepends.cmake b/CMakeScripts/ConfigInkscapeDepends.cmake
index 607ce7601..50527749d 100644
--- a/CMakeScripts/ConfigInkscapeDepends.cmake
+++ b/CMakeScripts/ConfigInkscapeDepends.cmake
@@ -79,3 +79,6 @@ CHECK_INCLUDE_FILES (unistd.h HAVE_UNISTD_H)
CHECK_INCLUDE_FILES (zlib.h HAVE_ZLIB_H)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
+
+# Create File inkscape_version.h
+FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/inkscape_version.h "#define INKSCAPE_VERSION \"${INKSCAPE_VERSION}\"\n")