diff options
author | Brad King <brad.king@kitware.com> | 2013-02-22 13:44:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-02-22 13:57:11 (GMT) |
commit | f17711c546304a5e62a06796e0124c64284bfb9a (patch) | |
tree | fa85552aed2781104152fbae7ee146801b7542f5 /Tests/RunCMake/FPHSA/FindBadFoundVar.cmake | |
parent | c1f5780e2d25015ba22dd0a7c8d43c925a62a7f6 (diff) | |
download | CMake-f17711c546304a5e62a06796e0124c64284bfb9a.zip CMake-f17711c546304a5e62a06796e0124c64284bfb9a.tar.gz CMake-f17711c546304a5e62a06796e0124c64284bfb9a.tar.bz2 |
FPHSA: Convert FOUND_VAR failure test to RunCMake
Move the Tests/FPHSA_InvalidFOUND_VAR test case over to a new
RunCMake.FPHSA test with a BadFoundVar case. The RunCMake tests are
built to cover failure cases easily and robustly.
Diffstat (limited to 'Tests/RunCMake/FPHSA/FindBadFoundVar.cmake')
-rw-r--r-- | Tests/RunCMake/FPHSA/FindBadFoundVar.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/FPHSA/FindBadFoundVar.cmake b/Tests/RunCMake/FPHSA/FindBadFoundVar.cmake new file mode 100644 index 0000000..152df5c --- /dev/null +++ b/Tests/RunCMake/FPHSA/FindBadFoundVar.cmake @@ -0,0 +1,6 @@ +set(BFV_FOO TRUE) + +include(FindPackageHandleStandardArgs) + +find_package_handle_standard_args(BadFoundVar REQUIRED_VARS BFV_FOO + FOUND_VAR badfoundvar_FOUND ) |