mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 12:19:54 -05:00
cmSystemTools: Restore FindProgram look-up of on-disk case on Windows
KWSys's `FindProgram` no longer looks up the actual case on disk. This
behavior change was inherited from the change to `CollapseFullPath`.
Extend commit 773b75e4ed (cmake: Explicitly look up on-disk case of
input paths on Windows, 2024-10-23, v4.0.0-rc1~589^2) to cover this by
wrapping `FindProgram` in a CMake-specific layer.
Issue: #20214
This commit is contained in:
@@ -560,6 +560,14 @@ public:
|
||||
static unsigned int RandomSeed();
|
||||
static unsigned int RandomNumber();
|
||||
|
||||
/**
|
||||
* Find an executable in the system PATH, with optional extra paths.
|
||||
* This wraps KWSys's FindProgram to add ToNormalizedPathOnDisk.
|
||||
*/
|
||||
static std::string FindProgram(
|
||||
std::string const& name,
|
||||
std::vector<std::string> const& path = std::vector<std::string>());
|
||||
|
||||
/** Find the directory containing CMake executables. */
|
||||
static void FindCMakeResources(char const* argv0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user