sub jhbuildWrapperPrefixIfNeeded()
{
- if (isWindows()) {
+ if (isWindows() || isCygwin()) {
return ();
}
if (-e getJhbuildPath()) {
push @args, @cmakeArgs if @cmakeArgs;
push @args, $additionalCMakeArgs if $additionalCMakeArgs;
- push @args, '"' . sourceDir() . '"';
+ my $cmakeSourceDir = isCygwin() ? windowsSourceDir() : sourceDir();
+ push @args, '"' . $cmakeSourceDir . '"';
# Compiler options to keep floating point values consistent
# between 32-bit and 64-bit architectures.