diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2019-08-12 22:25:07 (GMT) |
---|---|---|
committer | Alex Turbov <i.zaufi@gmail.com> | 2019-11-02 12:10:09 (GMT) |
commit | 949a1e120a3c2d9ecac08f7240a27d307fad503f (patch) | |
tree | 4f8733aa95cbedf6c038f2532bdd5fcd919e05be /Tests/RunCMake/message/message-checks.cmake | |
parent | 25eef45f16aa2046071d847d93314f3b843c870d (diff) | |
download | CMake-949a1e120a3c2d9ecac08f7240a27d307fad503f.zip CMake-949a1e120a3c2d9ecac08f7240a27d307fad503f.tar.gz CMake-949a1e120a3c2d9ecac08f7240a27d307fad503f.tar.bz2 |
message: New message types to mark checks performed by CMake
Closes #19638.
Co-Authored-By: Craig Scott <craig.scott@crascit.com>
Diffstat (limited to 'Tests/RunCMake/message/message-checks.cmake')
-rw-r--r-- | Tests/RunCMake/message/message-checks.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/RunCMake/message/message-checks.cmake b/Tests/RunCMake/message/message-checks.cmake new file mode 100644 index 0000000..605846e --- /dev/null +++ b/Tests/RunCMake/message/message-checks.cmake @@ -0,0 +1,13 @@ +message(CHECK_START "Find `libfoo`") +message(CHECK_START "Looking for `libfoo.h`") +message(CHECK_PASS "found [/usr/include]") +message(CHECK_START "Looking for `libfoo.so`") +message(CHECK_PASS "found [/usr/lib/libfoo.so]") +message(CHECK_START "Getting `libfoo` version") +message(CHECK_START "Looking for `libfoo/version.h`") +message(CHECK_PASS "found") +message(CHECK_PASS "1.2.3") +message(CHECK_FAIL "required version 4.5.6 but found 1.2.3") + +# Should generate an error, no associated CHECK_START +message(CHECK_FAIL "unmatched check fail case") |