diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-02-15 09:56:55 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-02-15 09:56:55 (GMT) |
commit | 91344e7a46a9c6a2d20781d889673143bd74d15a (patch) | |
tree | be7d208e161da865fde70d16ecd58d142ceb9c2c | |
parent | a2a903fe42f6ef54665135cac54b75d50bcd696c (diff) | |
download | CMake-91344e7a46a9c6a2d20781d889673143bd74d15a.zip CMake-91344e7a46a9c6a2d20781d889673143bd74d15a.tar.gz CMake-91344e7a46a9c6a2d20781d889673143bd74d15a.tar.bz2 |
Autogen: Fix RerunMocPlugin test for Ninja generator
-rw-r--r-- | Tests/QtAutogen/RerunMocPlugin/CMakeLists.txt | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/Tests/QtAutogen/RerunMocPlugin/CMakeLists.txt b/Tests/QtAutogen/RerunMocPlugin/CMakeLists.txt index 6ab9538..e1951f1 100644 --- a/Tests/QtAutogen/RerunMocPlugin/CMakeLists.txt +++ b/Tests/QtAutogen/RerunMocPlugin/CMakeLists.txt @@ -80,17 +80,10 @@ find_library(plEFile "PlugE" PATHS "${mocPlugBinDir}/Debug" "${mocPlugBinDir}" N # To avoid a race condition where the library has the same timestamp # as a source file and therefore gets rebuild # - sleep to ensure a timestamp change -# - touch library to ensure it has a new timestamp -acquire_timestamps(Before) +# - rebuild library to ensure it has a new timestamp sleep() -message(STATUS "Touching library files to ensure new timestamps") -file(TOUCH_NOCREATE "${plAFile}" "${plBFile}" "${plCFile}" "${plDFile}" "${plEFile}") -acquire_timestamps(After) -require_change(A) -require_change(B) -require_change(C) -require_change(D) -require_change(E) +message(STATUS "Rebuilding library files to ensure new timestamps") +rebuild(1) # - Ensure that the timestamp will change. @@ -98,7 +91,7 @@ require_change(E) # - Rebuild acquire_timestamps(Before) sleep() -message(STATUS "Changing json files") +message(STATUS "Changing json files.") configure_file("${mocPlugSrcDir}/jsonIn/StyleD.json" "${mocPlugBinDir}/jsonFiles/StyleC.json") configure_file("${mocPlugSrcDir}/jsonIn/StyleE.json" "${mocPlugBinDir}/jsonFiles/sub/StyleD.json") configure_file("${mocPlugSrcDir}/jsonIn/StyleC.json" "${mocPlugBinDir}/jsonFiles/StyleE.json") |