diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-15 13:43:02 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-15 13:43:02 (GMT) |
commit | ba62b9d94d702d2343791462650d2d49e2678d42 (patch) | |
tree | 44cd0eaa1090611e4f904e338b3cacc63d0d639d /Source | |
parent | 1406eae1ba66bea1028fc1ba0ca9f496ba2229cf (diff) | |
download | CMake-ba62b9d94d702d2343791462650d2d49e2678d42.zip CMake-ba62b9d94d702d2343791462650d2d49e2678d42.tar.gz CMake-ba62b9d94d702d2343791462650d2d49e2678d42.tar.bz2 |
BUG: fix build for cygwin
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmaketest.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmaketest.cxx b/Source/cmaketest.cxx index b3c250c..c05c43d 100644 --- a/Source/cmaketest.cxx +++ b/Source/cmaketest.cxx @@ -79,12 +79,14 @@ int main (int argc, char *argv[]) if(makeCommand.find(' ') != std::string::npos) { char *buffer = new char[makeCommand.size()+1]; +#if defined(_WIN32) && !defined(__CYGWIN__) if(GetShortPathName(makeCommand.c_str(), buffer, makeCommand.size()+1) != 0) { makeCommand = buffer; delete [] buffer; } +#endif } makeCommand += " "; makeCommand += executableName; |