append exe on windows before checking

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@37585 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2014-01-12 21:39:17 +00:00
parent 842c395eae
commit ea418f3ff1

View file

@ -1,7 +1,7 @@
/*
GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
Copyright (C) 2000-2004 Free Software Foundation
Copyright (C) 2000-2014 Free Software Foundation
Authors: Philippe C.D. Robert
Serg Stoyan
@ -326,6 +326,15 @@ enum {
[runButton setState:NSOffState];
return;
}
#ifdef __MINGW__
/* On windows we need to check the .exe file */
if ([[executablePath pathExtension] length] == 0)
{
executablePath = [executablePath stringByAppendingPathExtension: @"exe"];
}
#endif
NSLog(@"executable launch path: %@", executablePath);
/* now check if the executable does exist. Perhaps make failed */