mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-11 23:43:58 +03:00
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream * upstream-KWSys: KWSys 2025-04-02 (284a7281)
This commit is contained in:
commit
c813d47353
1 file changed
+3
@@ -329,6 +329,9 @@ inline char const* Getcwd(char* buf, unsigned int len)
|
||||
}
|
||||
inline int Chdir(std::string const& dir)
|
||||
{
|
||||
// We cannot use ToWindowsExtendedPath here because that causes a
|
||||
// UNC path to be recorded as the process working directory, and
|
||||
// can break child processes.
|
||||
return _wchdir(KWSYS_NAMESPACE::Encoding::ToWide(dir).c_str());
|
||||
}
|
||||
inline void Realpath(std::string const& path, std::string& resolved_path,
|
||||
|
||||
Reference in new issue
Block a user