This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  71777c1077af54fb8b0fc87ea8c43f8a771a9c9c (commit)
       via  629037c35d386fb45a3ec09e86e08c3d711cfb07 (commit)
       via  6313be44aa465ea883e3578b3a0424ae0c217d5c (commit)
       via  2eb158caf0bee12d5d74e0b50b9ea2bad9a0c7fc (commit)
      from  fe76eadb81e89374967c3aebbd762e43108c56fe (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=71777c1077af54fb8b0fc87ea8c43f8a771a9c9c
commit 71777c1077af54fb8b0fc87ea8c43f8a771a9c9c
Merge: fe76ead 629037c
Author:     David Cole <dc...@neocisinc.com>
AuthorDate: Mon Mar 17 08:52:46 2014 -0400
Commit:     CMake Topic Stage <kwro...@kitware.com>
CommitDate: Mon Mar 17 08:52:46 2014 -0400

    Merge topic 'fix-out-of-date-CTestTestMemcheck' into next
    
    629037c3 - Prevent unnecessary rebuilds
    6313be44 CMake Nightly Date Stamp
    2eb158ca CMake Nightly Date Stamp


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=629037c35d386fb45a3ec09e86e08c3d711cfb07
commit 629037c35d386fb45a3ec09e86e08c3d711cfb07
Author:     David Cole <dlrd...@aol.com>
AuthorDate: Mon Mar 17 07:32:35 2014 -0400
Commit:     David Cole <dlrd...@aol.com>
CommitDate: Mon Mar 17 08:47:46 2014 -0400

    - Prevent unnecessary rebuilds
    
    Repeated "cmake . && ninja" calls were resulting in rebuilds every time.
    
    Change the test so that it uses "file(WRITE" to generate a ".in" file and
    then configure_file to "copy if different" that ".in" file to the final
    generated source file.
    
    Now, rebuilds will only occur if there are changes to the generated source
    file on "cmake ." runs after the first one.

diff --git a/Tests/CTestTestMemcheck/NoLogDummyChecker/CMakeLists.txt 
b/Tests/CTestTestMemcheck/NoLogDummyChecker/CMakeLists.txt
index c5aa2cd..47d6a24 100644
--- a/Tests/CTestTestMemcheck/NoLogDummyChecker/CMakeLists.txt
+++ b/Tests/CTestTestMemcheck/NoLogDummyChecker/CMakeLists.txt
@@ -1,7 +1,12 @@
 # A dummy checker implementation that does not write the requested output file
 # so it triggers an error for every checker.
 
-file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/ret0.c" "int main(){return 0;}\n")
+file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/ret0.c.in" "int main(){return 0;}\n")
+
+configure_file(
+  "${CMAKE_CURRENT_BINARY_DIR}/ret0.c.in"
+  "${CMAKE_CURRENT_BINARY_DIR}/ret0.c"
+  )
 
 foreach(_pseudo IN ITEMS valgrind purify BC)
   add_executable(pseudonl_${_pseudo} "${CMAKE_CURRENT_BINARY_DIR}/ret0.c")

-----------------------------------------------------------------------

Summary of changes:
 Source/CMakeVersion.cmake                                |    2 +-
 Tests/CTestTestMemcheck/NoLogDummyChecker/CMakeLists.txt |    7 ++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
CMake
_______________________________________________
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits

Reply via email to