diff options
author | Brad King <brad.king@kitware.com> | 2016-04-06 17:40:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-04-08 14:51:01 (GMT) |
commit | f5e79004e28195f51cba4baff01615f6ce29b5bf (patch) | |
tree | d0c131261cf4ac0fc97f0d2d3e10341b83985631 /Tests/RunCMake/BuildDepends | |
parent | add7abc8352b87184579401cb2493c72e07aa212 (diff) | |
download | CMake-f5e79004e28195f51cba4baff01615f6ce29b5bf.zip CMake-f5e79004e28195f51cba4baff01615f6ce29b5bf.tar.gz CMake-f5e79004e28195f51cba4baff01615f6ce29b5bf.tar.bz2 |
Tests: Work around filesystem timestamp bugs in RunCMake.BuildDepends
The Custom-Symbolic-and-Byproduct case fails strangely on some
filesystems used by our nightly testing. Somehow on the first build the
`use-byproduct` output ends up with a timestamp older than
`gen-byproduct-stamp` even though the build log clearly shows them build
in the correct order (and must according to build system dependencies).
Work around this problem by adding an extra delay before building
`use-byproduct`.
Tested-by: Gerhard Grimm <gerhard.grimm@detec.com>
Diffstat (limited to 'Tests/RunCMake/BuildDepends')
-rw-r--r-- | Tests/RunCMake/BuildDepends/Custom-Symbolic-and-Byproduct.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/BuildDepends/Custom-Symbolic-and-Byproduct.cmake b/Tests/RunCMake/BuildDepends/Custom-Symbolic-and-Byproduct.cmake index 6948c35..687c827 100644 --- a/Tests/RunCMake/BuildDepends/Custom-Symbolic-and-Byproduct.cmake +++ b/Tests/RunCMake/BuildDepends/Custom-Symbolic-and-Byproduct.cmake @@ -10,6 +10,7 @@ add_custom_target(produce DEPENDS gen-byproduct) add_custom_command( OUTPUT use-byproduct DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/byproduct + COMMAND ${CMAKE_COMMAND} -E sleep 1.125 # workaround buggy filesystem timestamps COMMAND ${CMAKE_COMMAND} -E touch use-byproduct ) add_custom_target(drive ALL DEPENDS use-byproduct) |