mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-18 08:33:06 +00:00
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:
parent
842c395eae
commit
ea418f3ff1
1 changed files with 10 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue