BuildSystem: Cache results from when pulling the revision-information to avoid regenerating revision.h

(should remove the unneeded rebuilding of some core-files due to that the revision.h file has changed timestamp-wise)

--HG--
branch : trunk
This commit is contained in:
click
2010-10-14 22:48:55 +02:00
parent a735d84ecf
commit 88f196f1a9
2 changed files with 9 additions and 6 deletions
+9 -5
View File
@@ -62,8 +62,12 @@ if(NOT BUILDDIR)
endif()
# Create the actual revision.h file from the above params
configure_file(
"${CMAKE_SOURCE_DIR}/revision.h.in.cmake"
"${BUILDDIR}/revision.h"
@ONLY
)
if(NOT hg_rev_id MATCHES "${hg_rev_id_cached}")
configure_file(
"${CMAKE_SOURCE_DIR}/revision.h.in.cmake"
"${BUILDDIR}/revision.h"
@ONLY
)
set(hg_rev_id_cached ${hg_rev_id} CACHE TYPE STRING)
endif()