[Uml-devel] KDE/kdesdk/umbrello/umbrello
Christoph Feck
christoph at maxiom.de
Sun Mar 18 13:32:04 UTC 2012
SVN commit 1286184 by cfeck:
Only recompile if svn version actually changed
M +3 -4 CMakeLists.txt
--- trunk/KDE/kdesdk/umbrello/umbrello/CMakeLists.txt #1286183:1286184
@@ -14,8 +14,8 @@
if(Subversion_FOUND)
# extract working copy information for SOURCE_DIR into MY_XXX variables
Subversion_WC_INFO(${CMAKE_CURRENT_SOURCE_DIR} MY)
- set(SUBVERSION_REVISION ${MY_WC_REVISION})
- MESSAGE(STATUS "SVN Revision: ${MY_WC_REVISION}")
+ set(SUBVERSION_REVISION ${MY_WC_LAST_CHANGED_REV})
+ MESSAGE(STATUS "SVN Revision: ${MY_WC_LAST_CHANGED_REV}")
else(Subversion_FOUND)
set(SUBVERSION_REVISION 0)
MESSAGE(STATUS "SVN Revision: 0 - no package Subversion available!")
@@ -27,8 +27,7 @@
endif(SVN_FILE)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/revision.h.in ${CMAKE_CURRENT_BINARY_DIR}/revision.temp)
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different
- ${CMAKE_CURRENT_BINARY_DIR}/revision.temp ${CMAKE_CURRENT_BINARY_DIR}/revision.h
- COMMAND touch ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp)
+ ${CMAKE_CURRENT_BINARY_DIR}/revision.temp ${CMAKE_CURRENT_BINARY_DIR}/revision.h)
file(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/revision.temp)
########### set variables #############
More information about the umbrello-devel
mailing list