diff options
author | Brad King <brad.king@kitware.com> | 2015-10-29 21:50:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-10-30 11:40:46 (GMT) |
commit | 31e6571cca3267cf1f5e17df7c985521211885ef (patch) | |
tree | bc48bebaf259619bb7baae1681f375f537a40510 /Tests/RunCMake/find_program/DirsPerName.cmake | |
parent | 8ea7611bc3650c75c86d22a3127cb117dbcaa9be (diff) | |
download | CMake-31e6571cca3267cf1f5e17df7c985521211885ef.zip CMake-31e6571cca3267cf1f5e17df7c985521211885ef.tar.gz CMake-31e6571cca3267cf1f5e17df7c985521211885ef.tar.bz2 |
find_program: Fix regression in finding an already-known path
Changes in commit v3.4.0-rc1~124^2~1 (cmFindProgramCommand: Re-implement
search using more flexible approach, 2015-09-01) did not preserve the
behavior of looking for the given name with no search path at all.
Fix this and add a test case covering finding an absolute path with
no search directories.
Diffstat (limited to 'Tests/RunCMake/find_program/DirsPerName.cmake')
-rw-r--r-- | Tests/RunCMake/find_program/DirsPerName.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/find_program/DirsPerName.cmake b/Tests/RunCMake/find_program/DirsPerName.cmake index 54db6dd..6db778d 100644 --- a/Tests/RunCMake/find_program/DirsPerName.cmake +++ b/Tests/RunCMake/find_program/DirsPerName.cmake @@ -4,3 +4,9 @@ find_program(PROG NO_DEFAULT_PATH ) message(STATUS "PROG='${PROG}'") + +find_program(PROG_ABS + NAMES ${CMAKE_CURRENT_SOURCE_DIR}/A/testA + NO_DEFAULT_PATH + ) +message(STATUS "PROG_ABS='${PROG_ABS}'") |