diff options
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 0911422..ec0de18 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -483,7 +483,13 @@ int cmGlobalGenerator::TryCompile(const char *, const char *bindir, makeCommand += " "; makeCommand += target; #if defined(_WIN32) || defined(__CYGWIN__) - makeCommand += ".exe"; + std::string tmp = target; + // if the target does not already end in . something + // then assume .exe + if(tmp.size() < 4 || tmp[tmp.size()-4] != '.') + { + makeCommand += ".exe"; + } #endif // WIN32 } else |