mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 19:30:13 -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
12 lines
221 B
CMake
12 lines
221 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(EnvAndHints)
|
|
run_cmake(DirsPerName)
|
|
run_cmake(NamesPerDir)
|
|
run_cmake(RelAndAbsPath)
|
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES "^(Windows|CYGWIN)$")
|
|
run_cmake(WindowsCom)
|
|
run_cmake(WindowsExe)
|
|
endif()
|