[cmake-developers] [PATCH 2/2] FindwxWidgets.cmake: Resolve CygWin/MSYS paths to Windows paths
Brad King
brad.king at kitware.com
Tue Feb 16 10:49:32 EST 2016
On 02/14/2016 02:51 PM, Simon Richter wrote:
> CMake expects Windows style paths on MSYS, so use the cygpath utility to
> resolve them.
Thanks. Is that utility guaranteed to exist? IIRC the original MSYS
intentionally did not include such a utility.
In the past I've used a helper function like this:
native_path() {
cmd //c echo "$1" | sed 's/^"//;s/"$//'
}
to convert paths in a shell script without the cygpath tool.
-Brad
More information about the cmake-developers
mailing list