Set the proper version for CMAKE in the tarballs (made by autotools).
1.1 --- a/CMakeLists.txt Thu Jan 22 10:39:13 2009 +0000
1.2 +++ b/CMakeLists.txt Fri Jan 23 16:30:05 2009 +0000
1.3 @@ -1,7 +1,11 @@
1.4 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
1.5
1.6 -SET(PROJECT_NAME "LEMON")
1.7 -SET(PROJECT_VERSION "hg-tip" CACHE STRING "The version string.")
1.8 +IF(EXISTS ${CMAKE_SOURCE_DIR}/cmake/version.cmake)
1.9 + INCLUDE(${CMAKE_SOURCE_DIR}/cmake/version.cmake)
1.10 +ELSE(EXISTS ${CMAKE_SOURCE_DIR}/cmake/version.cmake)
1.11 + SET(PROJECT_NAME "LEMON")
1.12 + SET(PROJECT_VERSION "hg-tip" CACHE STRING "LEMON version string.")
1.13 +ENDIF(EXISTS ${CMAKE_SOURCE_DIR}/cmake/version.cmake)
1.14
1.15 PROJECT(${PROJECT_NAME})
1.16
2.1 --- a/Makefile.am Thu Jan 22 10:39:13 2009 +0000
2.2 +++ b/Makefile.am Fri Jan 23 16:30:05 2009 +0000
2.3 @@ -10,7 +10,11 @@
2.4 m4/lx_check_glpk.m4 \
2.5 m4/lx_check_soplex.m4 \
2.6 CMakeLists.txt \
2.7 - cmake
2.8 + cmake/FindGhostscript.cmake \
2.9 + cmake/version.cmake.in \
2.10 + cmake/version.cmake \
2.11 + cmake/nsis/lemon.ico \
2.12 + cmake/nsis/uninstall.ico
2.13
2.14 pkgconfigdir = $(libdir)/pkgconfig
2.15 lemondir = $(pkgincludedir)
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/cmake/version.cmake.in Fri Jan 23 16:30:05 2009 +0000
3.3 @@ -0,0 +1,2 @@
3.4 +SET(PROJECT_NAME "@PACKAGE_NAME@")
3.5 +SET(PROJECT_VERSION "@PACKAGE_VERSION@" CACHE STRING "LEMON version string.")
4.1 --- a/configure.ac Thu Jan 22 10:39:13 2009 +0000
4.2 +++ b/configure.ac Fri Jan 23 16:30:05 2009 +0000
4.3 @@ -97,10 +97,11 @@
4.4
4.5 dnl Add dependencies on files generated by configure.
4.6 AC_SUBST([CONFIG_STATUS_DEPENDENCIES],
4.7 - ['$(top_srcdir)/doc/Doxyfile.in $(top_srcdir)/lemon/lemon.pc.in'])
4.8 + ['$(top_srcdir)/doc/Doxyfile.in $(top_srcdir)/lemon/lemon.pc.in $(top_srcdir)/cmake/version.cmake.in'])
4.9
4.10 AC_CONFIG_FILES([
4.11 Makefile
4.12 +cmake/version.cmake
4.13 doc/Doxyfile
4.14 lemon/lemon.pc
4.15 ])