1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-20 23:09:42 +00:00

fix CI msvc build outside git bash

It was only by accident that git bash worked for CI basing on the
"real_pwd()" expression. Replace the dubious replacement pattern with
"cygpath", which is present on git bash, Cygwin, and msys2 alike. In
particular git bash uses msys2 internally.

I was able to confirm a working build under msys2 with a wrapper for
MSVC invocation via the Ninja generator.
This commit is contained in:
Stanislaw Halik 2018-11-03 20:19:44 +01:00
parent 3c25e7b93d
commit b099981c91

View file

@ -194,7 +194,11 @@ download() {
}
real_pwd() {
pwd | sed "s,/\(.\),\1:,"
if type cygpath >/dev/null 2>&1; then
cygpath -am "$PWD"
else
pwd # not git bash, Cygwin or the like
fi
}
CMAKE_OPTS=""