Merge topic 'test-RunCMake.BuildDepends-filesystem-workaround'

f5e79004 Tests: Work around filesystem timestamp bugs in RunCMake.BuildDepends
This commit is contained in:
Brad King 2016-04-11 09:39:00 -04:00 committed by CMake Topic Stage
commit 9ac11bc25d
1 changed files with 1 additions and 0 deletions

View File

@ -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)