diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 75184e679..6cd58509e 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,6 @@ July 24, 2008 +- Correct the revision_check target so that it always checks the revision, + not just when src/svnrevision.h is not present. - Added Linux support for the CMakeLists. This meant downgrading them for CMake 2.4, since the distros don't seem to consider 2.6 stable yet. As a bonus, GTK+ is no longer a required dependency; now it's optional. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d5abd7c7d..e64be73f1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -256,14 +256,11 @@ endif( NOT MSVC ) # Update svnrevision.h -add_custom_command( OUTPUT ${CMAKE_SOURCE_DIR}/src/svnrevision.h +add_custom_target( revision_check ALL COMMAND ${CMAKE_BINARY_DIR}/tools/updaterevision/updaterevision . src/svnrevision.h WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} DEPENDS updaterevision ) -add_custom_target( revision_check ALL - DEPENDS ${CMAKE_SOURCE_DIR}/src/svnrevision.h ) - # Libraries ZDoom needs set( ZDOOM_LIBS ${ZDOOM_LIBS} "${ZLIB_LIBRARIES}" "${JPEG_LIBRARIES}" "${FMOD_LIBRARY}" )