Skip to content
Snippets Groups Projects
Commit a7d9a543 authored by Mark Palange's avatar Mark Palange
Browse files

Changed the cygwin to windows path conversion to use 'cygpath -w'

parent 2f26e1ef
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,7 @@
import shutil
import socket
import sys
import commands
class CommandError(Exception):
pass
......@@ -535,16 +536,13 @@ def run_build(self, opts, targets):
finally:
os.chdir(cwd)
class CygwinSetup(WindowsSetup):
def __init__(self):
super(CygwinSetup, self).__init__()
self.generator = 'vc71'
def cmake_commandline(self, src_dir, build_dir, opts, simple):
dos_dir = src_dir.split('/')[2:]
dos_dir[0] = dos_dir[0] + ":"
dos_dir = '/'.join(dos_dir)
dos_dir = commands.getoutput("cygpath -w %s" % src_dir)
args = dict(
dir=dos_dir,
generator=self.gens[self.generator.lower()]['gen'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment