diff options
author | Brad King <brad.king@kitware.com> | 2014-01-21 19:14:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-01-21 19:14:49 (GMT) |
commit | 82d431750389e521f021772d5d01337b6dc8c0de (patch) | |
tree | 575c58211273c0524bb63c1aab253363fefb08eb /Tests/RunCMake/Configure/RerunCMake-build1-check.cmake | |
parent | 1ef444d67819afc43444b7b501543eeca284b177 (diff) | |
download | CMake-82d431750389e521f021772d5d01337b6dc8c0de.zip CMake-82d431750389e521f021772d5d01337b6dc8c0de.tar.gz CMake-82d431750389e521f021772d5d01337b6dc8c0de.tar.bz2 |
Allow projects to specify extra inputs to CMake
Define a new 'CMAKE_CONFIGURE_DEPENDS' directory property that projects
can use to specify input files to the CMake configuration process.
Extend the RunCMake.Configure test to verify that the build system
re-runs CMake when this input changes.
Diffstat (limited to 'Tests/RunCMake/Configure/RerunCMake-build1-check.cmake')
-rw-r--r-- | Tests/RunCMake/Configure/RerunCMake-build1-check.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/Configure/RerunCMake-build1-check.cmake b/Tests/RunCMake/Configure/RerunCMake-build1-check.cmake index 3fb557f..dbf8f67 100644 --- a/Tests/RunCMake/Configure/RerunCMake-build1-check.cmake +++ b/Tests/RunCMake/Configure/RerunCMake-build1-check.cmake @@ -2,3 +2,8 @@ file(READ ${stamp} content) if(NOT content STREQUAL 1) set(RunCMake_TEST_FAILED "Expected stamp '1' but got: '${content}'") endif() + +file(READ ${output} content) +if(NOT content STREQUAL 1) + set(RunCMake_TEST_FAILED "Expected output '1' but got: '${content}'") +endif() |