diff options
author | Brad King <brad.king@kitware.com> | 2019-08-28 15:28:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-28 15:28:59 (GMT) |
commit | aeeccc3b15c6476ecdaa51d40bb9500900d11ce2 (patch) | |
tree | 31d1eb4d5c306bfbf0ef7e633a95490d5e26ad03 /Tests/RunCMake | |
parent | 1d953058a2fe88b36c17dfe1f0f1c703a53f5f96 (diff) | |
parent | 4c8760c9fb2951d897a307637a761c371e48e615 (diff) | |
download | CMake-aeeccc3b15c6476ecdaa51d40bb9500900d11ce2.zip CMake-aeeccc3b15c6476ecdaa51d40bb9500900d11ce2.tar.gz CMake-aeeccc3b15c6476ecdaa51d40bb9500900d11ce2.tar.bz2 |
Merge branch 'backport-find-no-name' into release-3.15
Merge-request: !3751
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r-- | Tests/RunCMake/find_path/EmptyOldStyle-stdout.txt | 1 | ||||
-rw-r--r-- | Tests/RunCMake/find_path/EmptyOldStyle.cmake | 2 | ||||
-rw-r--r-- | Tests/RunCMake/find_path/RunCMakeTest.cmake | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/find_path/EmptyOldStyle-stdout.txt b/Tests/RunCMake/find_path/EmptyOldStyle-stdout.txt new file mode 100644 index 0000000..8f21eb8 --- /dev/null +++ b/Tests/RunCMake/find_path/EmptyOldStyle-stdout.txt @@ -0,0 +1 @@ +-- VAR-NOTFOUND diff --git a/Tests/RunCMake/find_path/EmptyOldStyle.cmake b/Tests/RunCMake/find_path/EmptyOldStyle.cmake new file mode 100644 index 0000000..d78bb65 --- /dev/null +++ b/Tests/RunCMake/find_path/EmptyOldStyle.cmake @@ -0,0 +1,2 @@ +find_path(VAR ONLY_CMAKE_FIND_ROOT_PATH) +message(STATUS "${VAR}") diff --git a/Tests/RunCMake/find_path/RunCMakeTest.cmake b/Tests/RunCMake/find_path/RunCMakeTest.cmake index bf0fa89..3afbedc 100644 --- a/Tests/RunCMake/find_path/RunCMakeTest.cmake +++ b/Tests/RunCMake/find_path/RunCMakeTest.cmake @@ -1,5 +1,6 @@ include(RunCMake) +run_cmake(EmptyOldStyle) if(WIN32 OR CYGWIN) run_cmake(PrefixInPATH) endif() |