mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 08:08:24 -05:00
BUG: fix full path for file in current directory
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user