| 2985 | |
| 2986 | namespace { |
| 2987 | std::string InitLogicalWorkingDirectory() |
| 2988 | { |
| 2989 | std::string cwd = cmsys::SystemTools::GetCurrentWorkingDirectory(); |
| 2990 | std::string pwd; |
| 2991 | if (cmSystemTools::GetEnv("PWD", pwd) && |
| 2992 | cmSystemTools::FileIsFullPath(pwd)) { |
| 2993 | std::string const pwd_real = cmSystemTools::GetRealPath(pwd); |
| 2994 | if (pwd_real == cwd) { |
| 2995 | cwd = cmSystemTools::ToNormalizedPathOnDisk(std::move(pwd)); |
| 2996 | } |
| 2997 | } |
| 2998 | return cwd; |
| 2999 | } |
| 3000 | |
| 3001 | std::string cmSystemToolsLogicalWorkingDirectory = |
| 3002 | InitLogicalWorkingDirectory(); |
no test coverage detected
searching dependent graphs…