#1032. Thanks very much to Daniel for his help with this.

This commit is contained in:
Robin Mills 2015-02-24 17:05:15 +00:00
parent 300ce82766
commit 950fcdc131
3 changed files with 6 additions and 1 deletions

View File

@ -191,6 +191,8 @@ IF(SUBVERSION_FOUND)
SET(SVN_REVISION "${svnExiv2_WC_REVISION}")
ENDIF()
ENDIF()
CONFIGURE_FILE( ${CMAKE_CURRENT_SOURCE_DIR}/src/svn_version.h.in
${CMAKE_CURRENT_SOURCE_DIR}/src/svn_version.h @ONLY)
MESSAGE(STATUS "SVN version: ${SVN_REVISION}")
IF( NOT MSVC )

View File

@ -275,6 +275,7 @@ CONFIGURE_FILE( config/config.h.cmake ${CMAKE_SOURCE_DIR}/include/exiv2/exv_conf
CONFIGURE_FILE( config/exv_msvc.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/exv_msvc.h COPYONLY )
INSTALL( FILES ${CMAKE_SOURCE_DIR}/include/exiv2/exv_conf.h DESTINATION include/exiv2 )
INSTALL( FILES ${CMAKE_SOURCE_DIR}/include/exiv2/exv_msvc.h DESTINATION include/exiv2 )
INSTALL( FILES ${CMAKE_SOURCE_DIR}/src/svn_version.h DESTINATION include/exiv2 )
CONFIGURE_FILE(config/exiv2_uninstall.cmake ${CMAKE_BINARY_DIR}/cmake_uninstall.cmake COPYONLY)
ADD_CUSTOM_TARGET(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake")

View File

@ -1 +1,3 @@
#define SVN_VERSION @SVN_REVISION@
#ifndef SVN_VERSION
#define SVN_VERSION @SVN_REVISION@
#endif