mirror of
https://github.com/reactos/CMake.git
synced 2025-02-14 16:38:42 +00:00
BUG: fix full path for file in current directory
This commit is contained in:
parent
f6b3049bda
commit
f69e3caa14
@ -1205,8 +1205,15 @@ std::string cmSystemTools::CollapseFullPath(const char* in_name)
|
||||
char resolved_name[5024];
|
||||
# endif
|
||||
# endif
|
||||
realpath(dir.c_str(), resolved_name);
|
||||
dir = resolved_name;
|
||||
if(dir != "")
|
||||
{
|
||||
realpath(dir.c_str(), resolved_name);
|
||||
dir = resolved_name;
|
||||
}
|
||||
else
|
||||
{
|
||||
dir = cmSystemTools::GetCurrentWorkingDirectory();
|
||||
}
|
||||
return dir + "/" + file;
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user