diff options
author | Brad King <brad.king@kitware.com> | 2019-08-29 13:25:03 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-08-29 13:25:13 (GMT) |
commit | 31c356e366d7c9c1d0bc2998e95937ec6de43232 (patch) | |
tree | 7b182a308e6c0b582f717b14f486cee7b9e94220 /Tests | |
parent | 2d0a24acc53b83d669955eb4933e64bb2ea8c88f (diff) | |
parent | 84e33e6da4aef67f5eeae06cf73fd461a2d634d6 (diff) | |
download | CMake-31c356e366d7c9c1d0bc2998e95937ec6de43232.zip CMake-31c356e366d7c9c1d0bc2998e95937ec6de43232.tar.gz CMake-31c356e366d7c9c1d0bc2998e95937ec6de43232.tar.bz2 |
Merge topic 'find-no-name'
84e33e6da4 Merge branch 'backport-find-no-name' into find-no-name
4c8760c9fb find_path: Fix crash on empty old-style list of names
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3751
Diffstat (limited to 'Tests')
-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 8b5b5b7..ed55f51 100644 --- a/Tests/RunCMake/find_path/RunCMakeTest.cmake +++ b/Tests/RunCMake/find_path/RunCMakeTest.cmake @@ -1,5 +1,6 @@ include(RunCMake) +run_cmake(EmptyOldStyle) run_cmake(FromPATHEnv) run_cmake(PrefixInPATH) |