Fixes revision.hpp generation with cmake 1.8(.2).

Applies patch #1727.
This commit is contained in:
Mark de Wever 2010-07-13 19:58:09 +00:00
parent 0566a5aad8
commit fbc44353b4
2 changed files with 2 additions and 1 deletions

View file

@ -220,6 +220,7 @@ Version 1.9.0-svn:
* Fixed attacker still getting resting bonus after attack using movement_used=0
* Fixed [store_time_of_day] for earlier turn
* Fixed _off^_usr not using the tile_image of theme.
* Patch #1727: Fixed revision.hpp generation with cmake 1.8(.2)
Version 1.8.0:
* AI:

View file

@ -139,7 +139,7 @@ if(SVNVERSION_EXECUTABLE)
execute_process(COMMAND ${SVNVERSION_EXECUTABLE} -n ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE SVN_VERSION)
if(SVN_VERSION MATCHES [0-9]+.*)
add_custom_target(revision-stamp ALL
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/revision-stamp
COMMAND ${CMAKE_COMMAND}
-DSVNVERSION_EXECUTABLE="${SVNVERSION_EXECUTABLE}" -DSRC_DIR="${CMAKE_SOURCE_DIR}"
-P "${CMAKE_MODULE_PATH}/revision.cmake"