mirror of
https://github.com/reactos/CMake.git
synced 2024-11-29 22:40:25 +00:00
ENH: look for .com files before .exe
This commit is contained in:
parent
c133a6acfa
commit
e179ddde12
@ -1105,6 +1105,14 @@ std::string cmSystemTools::FindProgram(const char* name,
|
||||
{
|
||||
return cmSystemTools::CollapseFullPath(tryPath.c_str());
|
||||
}
|
||||
#ifdef _WIN32
|
||||
tryPath += ".com";
|
||||
if(cmSystemTools::FileExists(tryPath.c_str()) &&
|
||||
!cmSystemTools::FileIsDirectory(tryPath.c_str()))
|
||||
{
|
||||
return cmSystemTools::CollapseFullPath(tryPath.c_str());
|
||||
}
|
||||
#endif
|
||||
tryPath += cmSystemTools::GetExecutableExtension();
|
||||
if(cmSystemTools::FileExists(tryPath.c_str()) &&
|
||||
!cmSystemTools::FileIsDirectory(tryPath.c_str()))
|
||||
|
Loading…
Reference in New Issue
Block a user