From c6645729c838b46dc45b2fbb7dcdcae866a9fb37 Mon Sep 17 00:00:00 2001 From: verbalshadow Date: Mon, 31 Mar 2008 22:50:24 +0000 Subject: [PATCH] Cmake: Generate inkscape_version.h --- CMakeScripts/ConfigInkscapeDepends.cmake | 3 +++ config.h.cmake | 2 ++ 2 files changed, 5 insertions(+) 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") diff --git a/config.h.cmake b/config.h.cmake index 6f83fd21f..fe4666ec2 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1,6 +1,8 @@ #ifndef _CONFIG_H_ #define _CONFIG_H_ +//#define INKSCAPE_VERSION "${INKSCAPE_VERSION}" + /* Define WIN32 when on windows */ #ifndef WIN32 #cmakedefine WIN32 -- 2.30.2