From: verbalshadow Date: Mon, 31 Mar 2008 22:50:24 +0000 (+0000) Subject: Cmake: Generate inkscape_version.h X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c6645729c838b46dc45b2fbb7dcdcae866a9fb37;p=inkscape.git Cmake: Generate inkscape_version.h --- 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