mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
find_program() incorrectly prepended search path components to absolute file paths, and incorrectly searched the current working directory for files that contained no directory separators. * Replace calls cmFindProgramHelper::CheckDirectory(std::string()) with call of new method cmFindProgramHelper::CheckCompoundNames() that checks for the presence of a directory separator in the file name. * Use cmSystemTools::CollapseCombinedPath rather than string concatenation to properly combine absolute file names with search path components. * Add unit tests to verify corrections. Fixes: #18044
7 lines
268 B
Plaintext
7 lines
268 B
Plaintext
-- PROG_ABS='PROG_ABS-NOTFOUND'
|
|
-- PROG_ABS_NPD='PROG_ABS_NPD-NOTFOUND'
|
|
-- PROG_CWD='PROG_CWD-NOTFOUND'
|
|
-- PROG_CWD_NPD='PROG_CWD_NPD-NOTFOUND'
|
|
-- PROG_CWD_DOT='[^']*/Tests/RunCMake/find_program/testCWD'
|
|
-- PROG_CWD_DOT_NPD='[^']*/Tests/RunCMake/find_program/testCWD'
|