Attached Files | cmake-2.8.7-mingw.patch [^] (46,089 bytes) 2012-02-28 02:05 [Show Content] [Hide Content]diff -rup a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx
--- a/Source/cmCacheManager.cxx 2011-12-30 08:49:56 -0800
+++ b/Source/cmCacheManager.cxx 2012-02-27 03:03:41 -0800
@@ -199,6 +199,9 @@ bool cmCacheManager::LoadCache(const cha
{
std::string cacheFile = path;
cacheFile += "/CMakeCache.txt";
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ cacheFile = cmsys::SystemTools::ConvertToOutputPath(cacheFile.c_str());
+#endif
// clear the old cache, if we are reading in internal values
if ( internal )
{
diff -rup a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
--- a/Source/cmFileCommand.cxx 2011-12-30 08:49:57 -0800
+++ b/Source/cmFileCommand.cxx 2012-02-24 02:38:00 -0800
@@ -394,7 +394,12 @@ bool cmFileCommand::HandleStringsCommand
}
// Get the file to read.
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ std::string fileName = cmsys::SystemTools::ConvertToOutputPath(args[1].c_str());
+#else
std::string fileName = args[1];
+#endif
+
if(!cmsys::SystemTools::FileIsFullPath(fileName.c_str()))
{
fileName = this->Makefile->GetCurrentDirectory();
diff -rup a/Source/cmFileTimeComparison.cxx b/Source/cmFileTimeComparison.cxx
--- a/Source/cmFileTimeComparison.cxx 2011-12-30 08:49:57 -0800
+++ b/Source/cmFileTimeComparison.cxx 2012-02-24 11:39:54 -0800
@@ -26,6 +26,8 @@
# include <windows.h>
#endif
+#include <cmsys/SystemTools.hxx>
+
//----------------------------------------------------------------------------
class cmFileTimeComparisonInternal
{
@@ -83,6 +85,10 @@ bool cmFileTimeComparisonInternal::Stat(
return false;
}
#else
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ std::string path = cmsys::SystemTools::ConvertToOutputPath(fname);
+ fname = path.c_str();
+#endif
// Windows version. Get the modification time from extended file
// attributes.
WIN32_FILE_ATTRIBUTE_DATA fdata;
diff -rup a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
--- a/Source/cmSystemTools.cxx 2011-12-30 08:49:57 -0800
+++ b/Source/cmSystemTools.cxx 2012-02-24 11:50:42 -0800
@@ -2132,6 +2132,12 @@ void cmSystemTools::DoNotInheritStdPipes
//----------------------------------------------------------------------------
bool cmSystemTools::CopyFileTime(const char* fromFile, const char* toFile)
{
+#if defined(__MINGW32__) || defined(__MINGW64__)
+std::string fromFileStr = cmSystemTools::ConvertToOutputPath(fromFile);
+std::string toFileStr = cmSystemTools::ConvertToOutputPath(toFile);
+fromFile = fromFileStr.c_str();
+toFile = toFileStr.c_str();
+#endif
#if defined(_WIN32) && !defined(__CYGWIN__)
cmSystemToolsWindowsHandle hFrom =
CreateFile(fromFile, GENERIC_READ, FILE_SHARE_READ, 0,
diff -rup a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
--- a/Source/kwsys/SystemTools.cxx 2011-12-30 08:49:57 -0800
+++ b/Source/kwsys/SystemTools.cxx 2012-02-27 19:14:16 -0800
@@ -101,7 +101,6 @@ extern "C" void cygwin_conv_to_win32_pat
#include <utime.h>
#endif
-
// This is a hack to prevent warnings about these functions being
// declared but not referenced.
#if defined(__sgi) && !defined(__GNUC__)
@@ -415,6 +414,13 @@ const char* SystemTools::GetExecutableEx
bool SystemTools::MakeDirectory(const char* path)
{
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ char winpath[MAX_PATH+1];
+ if(SystemTools::PathMingwToWin32(path, winpath))
+ {
+ path = winpath;
+ }
+#endif
if(!path)
{
return false;
@@ -816,6 +822,18 @@ bool SystemTools::DeleteRegistryValue(co
bool SystemTools::SameFile(const char* file1, const char* file2)
{
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ char winpath1[MAX_PATH+1];
+ char winpath2[MAX_PATH+1];
+ if(SystemTools::PathMingwToWin32(file1, winpath1))
+ {
+ file1 = winpath1;
+ }
+ if(SystemTools::PathMingwToWin32(file2, winpath2))
+ {
+ file2 = winpath2;
+ }
+#endif
#ifdef _WIN32
HANDLE hFile1, hFile2;
@@ -891,7 +909,15 @@ bool SystemTools::FileExists(const char*
{
return false;
}
-#if defined(__CYGWIN__)
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ // Convert filename to native windows path if possible.
+ char winpath[MAX_PATH+1];
+ if(SystemTools::PathMingwToWin32(filename, winpath))
+ {
+ return WindowsFileExists(winpath);
+ }
+ return access(filename, R_OK) == 0;
+#elif defined(__CYGWIN__)
// Convert filename to native windows path if possible.
char winpath[MAX_PATH];
if(SystemTools::PathCygwinToWin32(filename, winpath))
@@ -939,6 +965,951 @@ bool SystemTools::PathCygwinToWin32(cons
}
#endif
+//----------------------------------------------------------------------------
+#if defined(__MINGW32__) || defined(__MINGW64__)
+
+// Returns true if string starts with another string
+static bool StringStartsWith(const char* str1, const char* str2)
+{
+ if (!str1 || !str2)
+ {
+ return false;
+ }
+ size_t len1 = strlen(str1), len2 = strlen(str2);
+ return len1 >= len2 && !strncmp(str1, str2, len2) ? true : false;
+}
+
+// Returns true if string equals another string
+static bool StringEquals(const char* str1, const char* str2)
+{
+ if (!str1 && !str2)
+ {
+ return true;
+ }
+
+ if (!str1 || !str2)
+ {
+ return false;
+ }
+
+ return !strcmp(str1, str2) ? true : false;
+}
+
+static bool ConvertUnixToWindowsPathSeparator(const char * readLine, char * writeLine, bool addSeparator)
+{
+ const char * readLineStart = readLine;
+
+ if (!readLine || !writeLine)
+ {
+ return false;
+ }
+
+ while(*readLine)
+ {
+ if ('/' == *readLine)
+ {
+ *writeLine++ = '\\';
+ }
+ else
+ {
+ *writeLine++ = *readLine;
+ }
+
+ readLine++;
+ }
+
+ // add trailing path separator if not present
+
+ if (addSeparator && (readLine > readLineStart))
+ {
+ readLine--;
+
+ if ('\\' != *readLine)
+ {
+ *writeLine++ = '\\';
+ }
+ }
+
+ *writeLine++ = 0;
+
+ return true;
+}
+
+static bool AppendUnixPathSeparator(char * readLine)
+{
+ char * readLineStart = readLine;
+
+ if (!readLine)
+ {
+ return false;
+ }
+
+ while(*readLine)
+ {
+ readLine++;
+ }
+
+ // add trailing path separator if not present
+
+ if (readLine > readLineStart)
+ {
+ if ('/' != *(readLine-1))
+ {
+ *readLine++ = '/';
+ }
+ }
+
+ *readLine++ = 0;
+
+ return true;
+}
+
+bool SystemTools::FstabToWin32(const char *mountpoint, char *win32_path)
+{
+ SystemToolsTranslationMap::iterator i = SystemTools::FstabMap->find(mountpoint);
+
+ win32_path[0] = 0;
+
+ if (!mountpoint)
+ {
+ false;
+ }
+
+ if (':' == mountpoint[1])
+ {
+ return ConvertUnixToWindowsPathSeparator(mountpoint, win32_path, false);
+ }
+
+ if (('/' == mountpoint[0]) && ('/' == mountpoint[1]))
+ {
+ return ConvertUnixToWindowsPathSeparator(mountpoint, win32_path, false);
+ }
+
+ if (i != SystemTools::FstabMap->end())
+ {
+ strncpy(win32_path, i->second.c_str(), _MAX_PATH);
+ // win32_path will only be null-terminated by strncpy if the length of the C string in i->second.c_str() is less than _MAX_PATH
+ win32_path[_MAX_PATH] = 0;
+ }
+
+ return win32_path[0] != 0;
+}
+
+// Convert MinGW path to Windows path
+static bool mingw_conv_to_win32_path(const char *path, char *win32_path)
+{
+ char Path[_MAX_PATH+2];
+ char * startPath = Path;
+ char * currentPath = 0;
+ char * endPath = 0;
+ char saveChar = 0;
+ int lenPath = 0;
+ int lenWin32Path = 0;
+ bool found = false;
+ bool hasSeparator = false;
+
+ if (!path || !win32_path)
+ {
+ return false;
+ }
+
+ lenPath = strlen(path);
+
+ win32_path[0] = 0;
+
+ if (0 == lenPath)
+ {
+ return true;
+ }
+
+ if (lenPath > _MAX_PATH)
+ {
+ return false;
+ }
+
+ // Make a local writable copy of path
+ strncpy(Path, path, _MAX_PATH);
+ Path[_MAX_PATH] = 0;
+ Path[_MAX_PATH+1] = 0; // extra character for appended path separator
+
+ lenPath = strlen(Path);
+
+ currentPath = startPath + lenPath - 1;
+
+ if ('/' == *currentPath)
+ {
+ hasSeparator = true;
+ }
+
+ AppendUnixPathSeparator(Path);
+
+ lenPath = strlen(Path);
+
+ currentPath = startPath + lenPath - 1;
+
+ endPath = currentPath;
+
+ while (!found && (currentPath >= startPath))
+ {
+ if ('/' == *currentPath)
+ {
+ saveChar = (*(currentPath + 1));
+ *(currentPath + 1) = 0;
+ win32_path[0] = 0;
+
+ if (SystemTools::FstabToWin32(startPath, win32_path))
+ {
+ *(currentPath + 1) = saveChar;
+
+ lenWin32Path = strlen(win32_path);
+
+ if (!hasSeparator && ('/' == *endPath))
+ {
+ *endPath = 0;
+ }
+
+ strncpy(win32_path + lenWin32Path, (currentPath + 1), _MAX_PATH - lenWin32Path);
+
+ // win32_path will only be null-terminated by strncpy if the length of the C string in (currentPath + 1) is less than (_MAX_PATH - lenWin32Path)
+ win32_path[_MAX_PATH] = 0;
+
+ ConvertUnixToWindowsPathSeparator(win32_path, win32_path, false);
+
+ lenWin32Path = strlen(win32_path);
+
+ if (!hasSeparator && (lenWin32Path > 2) && ('\\' == win32_path[lenWin32Path-1]) && (':' != win32_path[lenWin32Path-2]))
+ {
+ win32_path[lenWin32Path-1] = 0;
+ }
+
+ found = true;
+ }
+
+ *(currentPath + 1) = saveChar;
+ }
+
+ currentPath--;
+ }
+
+ return win32_path[0] != 0;
+}
+
+bool SystemTools::PathMingwToWin32(const char *path, char *win32_path)
+{
+ SystemToolsTranslationMap::iterator i = SystemTools::Mingw2Win32Map->find(path);
+
+ win32_path[0] = 0;
+
+ if (!path)
+ {
+ return false;
+ }
+
+ if ((0 != path[0]) && (':' == path[1]))
+ {
+ // path already in Windows format
+ return false;
+ }
+
+ if (('\\' == path[0]) && ('\\' == path[1]))
+ {
+ // path already in Windows format
+ return false;
+ }
+
+ if (i != SystemTools::Mingw2Win32Map->end())
+ {
+ strncpy(win32_path, i->second.c_str(), _MAX_PATH);
+ // win32_path will only be null-terminated by strncpy if the length of the C string in i->second.c_str() is less than _MAX_PATH
+ win32_path[_MAX_PATH] = 0;
+ }
+ else
+ {
+ if(mingw_conv_to_win32_path(path, win32_path))
+ {
+ SystemTools::Mingw2Win32Map->insert(std::make_pair(kwsys_stl::string(path), kwsys_stl::string(win32_path)));
+ }
+ }
+
+ return win32_path[0] != 0;
+}
+
+bool SystemTools::VolumeLabelToWin32(const char *label, char *win32_path)
+{
+ SystemToolsTranslationMap::iterator i = SystemTools::VolumeLabelMap->find(label);
+
+ win32_path[0] = 0;
+
+ if (i != SystemTools::VolumeLabelMap->end())
+ {
+ strncpy(win32_path, i->second.c_str(), _MAX_PATH);
+ // win32_path will only be null-terminated by strncpy if the length of the C string in i->second.c_str() is less than _MAX_PATH
+ win32_path[_MAX_PATH] = 0;
+ }
+
+ return win32_path[0] != 0;
+}
+
+bool SystemTools::UUIDToWin32(const char *uuid, char *win32_path)
+{
+ SystemToolsTranslationMap::iterator i = SystemTools::UUIDMap->find(uuid);
+
+ win32_path[0] = 0;
+
+ if (i != SystemTools::UUIDMap->end())
+ {
+ strncpy(win32_path, i->second.c_str(), _MAX_PATH);
+ // win32_path will only be null-terminated by strncpy if the length of the C string in i->second.c_str() is less than _MAX_PATH
+ win32_path[_MAX_PATH] = 0;
+ }
+
+ return win32_path[0] != 0;
+}
+
+#define FSTAB_MAX_LINE 2048
+
+typedef enum
+{
+ FSTAB_LINE_BLANK = 0,
+ FSTAB_LINE_COMMENT,
+ FSTAB_LINE_OK
+} FSTAB_LINE_TYPE;
+
+static void ParseFstabWhitespace(char ** preadLine)
+{
+ char * readLine = *preadLine;
+
+ // skip whitespace
+
+ while((*readLine) && (( '\t' == *readLine) || (' ' == *readLine)))
+ {
+ if ('\n' == *readLine)
+ {
+ break;
+ }
+
+ readLine++;
+ }
+
+ *preadLine = readLine;
+}
+
+static int ParseFstabInteger(char ** preadLine, char ** pwriteLine, int maxDigits)
+{
+ char * readLine = *preadLine;
+ char * writeLine = *pwriteLine;
+ int state = 0;
+ int value = 0;
+ int digits = maxDigits;
+
+ // Deterministic finite automaton to recognize natural numbers
+
+ while((*readLine) && (( '\t' != *readLine) && (' ' != *readLine) && ('\n' != *readLine)) && (digits > 0))
+ {
+ switch(state)
+ {
+ case 0:
+ if ((*readLine >= '0') && (*readLine <= '9'))
+ {
+ value *= 10;
+ value += ((*readLine) - '0');
+ digits--;
+
+ *writeLine++ = *readLine;
+ }
+ else
+ {
+ // invalid character
+ value = 0;
+ digits = 0;
+ }
+ break;
+ default:
+ // invalid character
+ state = 0;
+ }
+
+ if ('\n' != *readLine)
+ {
+ readLine++;
+ }
+ }
+
+ *writeLine++ = 0;
+
+ *preadLine = readLine;
+ *pwriteLine = writeLine;
+
+ return value;
+}
+
+static void ParseFstabString(char ** preadLine, char ** pwriteLine)
+{
+ char * readLine = *preadLine;
+ char * writeLine = *pwriteLine;
+ int state = 0;
+ int value = 0;
+
+ // Deterministic finite automaton to recognize strings containing escaped characters, and octal and hex constants
+
+ while((*readLine) && (( '\t' != *readLine) && (' ' != *readLine) && ('\n' != *readLine)))
+ {
+ switch(state)
+ {
+ case 0:
+ if (*readLine == '\\')
+ {
+ // escaped character
+ state = 1;
+ }
+ else
+ {
+ *writeLine++ = *readLine;
+ }
+ break;
+ case 1:
+ if (*readLine == '0')
+ {
+ // read octal or hex constant
+ state = 2;
+ }
+ else
+ {
+ // write escaped character
+ *writeLine++ = *readLine;
+ state = 0;
+ }
+ break;
+ case 2:
+ if (*readLine == 'x')
+ {
+ // hex constant
+ state = 3;
+ }
+ else
+ {
+ // octal constant
+ if ((*readLine >= '0') && (*readLine <= '7'))
+ {
+ // first octal digit
+ value = 0;
+ value += ((*readLine) - '0');
+
+ readLine++;
+
+ if ((*readLine >= '0') && (*readLine <= '7'))
+ {
+ // second octal digit
+ value <<= 3;
+ value += ((*readLine) - '0');
+ *writeLine++ = (char)value;
+ state = 0;
+ }
+ else
+ {
+ *writeLine++ = (char)value;
+
+ state = 0;
+
+ readLine--;
+ }
+
+ }
+ else
+ {
+ // invalid constant
+ state = 0;
+ }
+ }
+ break;
+ case 3:
+ if (((*readLine >= '0') && (*readLine <= '9')) || ((*readLine >= 'a') && (*readLine <= 'f')) || ((*readLine >= 'A') && (*readLine <= 'F')))
+ {
+ // first hex digit
+ value = 0;
+
+ if ((*readLine >= '0') && (*readLine <= '9'))
+ {
+ value += ((*readLine) - '0');
+ }
+ else if ((*readLine >= 'a') && (*readLine <= 'f'))
+ {
+ value += ((*readLine) - 'a');
+ }
+ else if ((*readLine >= 'A') && (*readLine <= 'F'))
+ {
+ value += ((*readLine) - 'A');
+ }
+
+ if (('\n' != *readLine) && (0 != *readLine))
+ {
+ readLine++;
+
+ // second hex digit
+
+ if ((*readLine >= '0') && (*readLine <= '9'))
+ {
+ value <<= 4;
+ value += ((*readLine) - '0');
+ *writeLine++ = (char)value;
+ }
+ else if ((*readLine >= 'a') && (*readLine <= 'f'))
+ {
+ value <<= 4;
+ value += ((*readLine) - 'a');
+ *writeLine++ = (char)value;
+ }
+ else if ((*readLine >= 'A') && (*readLine <= 'F'))
+ {
+ value <<= 4;
+ value += ((*readLine) - 'A');
+ *writeLine++ = (char)value;
+ }
+ else
+ {
+ *writeLine++ = (char)value;
+
+ readLine--;
+ }
+ }
+
+ state = 0;
+ }
+ else
+ {
+ // invalid hex constant
+ state = 0;
+ }
+
+ break;
+ default:
+ // invalid character
+ state = 0;
+ }
+
+ if ('\n' != *readLine)
+ {
+ readLine++;
+ }
+ }
+
+ *writeLine++ = 0; // add room to append an extra character to string
+ *writeLine++ = 0;
+
+ *preadLine = readLine;
+ *pwriteLine = writeLine;
+}
+
+static FSTAB_LINE_TYPE fstab_readline(char ** preadLine, char ** pwriteLine, char ** pfs_spec, char ** pfs_mountpoint, char ** pfs_type, char ** pfs_options, int * pfs_dump, int * pfs_pass)
+{
+ char *fs_spec = *pfs_spec;
+ char *fs_mountpoint = *pfs_mountpoint;
+ char *fs_type = *pfs_type;
+ char *fs_options = *pfs_options;
+ int fs_dump = *pfs_dump;
+ int fs_pass = *pfs_pass;
+
+ char *readLineStart = *preadLine;
+ char *readLine = *preadLine;
+ char *writeLine = *pwriteLine;
+ int lenLine = 0;
+ bool eol = false;
+
+ fs_spec = NULL;
+ fs_mountpoint = NULL;
+ fs_type = NULL;
+ fs_options = NULL;
+ fs_dump = 0;
+ fs_pass = 0;
+
+ lenLine = strlen(readLine);
+
+ // skip whitespace
+
+ ParseFstabWhitespace(&readLine);
+
+ // skip comment line
+
+ if ('#' == *readLine)
+ {
+ readLineStart[0] = 0;
+ return FSTAB_LINE_COMMENT;
+ }
+
+ // skip blank line
+
+ if ('\n' == *readLine)
+ {
+ readLineStart[0] = 0;
+ return FSTAB_LINE_BLANK;
+ }
+
+ // get file system path
+
+ fs_spec = writeLine;
+
+ ParseFstabString(&readLine, &writeLine);
+
+ // get mountpoint
+
+ if ('\n' != *readLine)
+ {
+ // skip whitespace
+
+ ParseFstabWhitespace(&readLine);
+
+ fs_mountpoint = writeLine;
+
+ ParseFstabString(&readLine, &writeLine);
+ }
+
+ // get file system type
+
+ if ('\n' != *readLine)
+ {
+ // skip whitespace
+
+ ParseFstabWhitespace(&readLine);
+
+ fs_type = writeLine;
+
+ ParseFstabString(&readLine, &writeLine);
+ }
+
+ // get file system options
+
+ if ('\n' != *readLine)
+ {
+ // skip whitespace
+
+ ParseFstabWhitespace(&readLine);
+
+ fs_options = writeLine;
+
+ ParseFstabString(&readLine, &writeLine);
+ }
+
+ // get dump
+
+ if ('\n' != *readLine)
+ {
+ // skip whitespace
+
+ ParseFstabWhitespace(&readLine);
+
+ fs_dump = ParseFstabInteger(&readLine, &writeLine, 1);
+ }
+
+ // get pass
+
+ if ('\n' != *readLine)
+ {
+ // skip whitespace
+
+ ParseFstabWhitespace(&readLine);
+
+ fs_pass = ParseFstabInteger(&readLine, &writeLine, 1);
+ }
+
+ *pfs_spec = fs_spec;
+ *pfs_mountpoint = fs_mountpoint;
+ *pfs_type = fs_type;
+ *pfs_options = fs_options;
+ *pfs_dump = fs_dump;
+ *pfs_pass = fs_pass;
+
+ return FSTAB_LINE_OK;
+}
+
+bool SystemTools::fstab_init(char * fstabPath)
+{
+ unsigned long uDriveMask = _getdrives();
+ char drive = 'a';
+ char driveUpper = 'A';
+ char Drive[] = "c:\\"; // template drive specifier
+ char MsysDrive[] = "/c/"; // template MSYS drive specifier
+
+ bool bFlag = false;
+ char VolumePathName[_MAX_PATH+1];
+ DWORD VolumePathNameSize = sizeof(VolumePathName);
+ char VolumeName[_MAX_PATH+1];
+ DWORD VolumeNameSize = sizeof(VolumeName);
+ DWORD VolumeSerialNumber = 0;
+ DWORD MaximumComponentLength = 0;
+ DWORD FileSystemFlags = 0;
+ CHAR FileSystemName[_MAX_PATH+1];
+ DWORD FileSystemNameSize = sizeof(FileSystemName);
+ char MsysRootName[_MAX_PATH+1];
+ char MsysName[_MAX_PATH+1];
+ char HomeName[_MAX_PATH+1];
+ char EtcName[_MAX_PATH+1];
+ char UUIDName[51];
+
+ char *home = NULL;
+
+ if (!fstabPath)
+ {
+ return false;
+ }
+
+ fstabPath[0] = 0;
+
+ // get $HOME environment variable
+
+ home = getenv("HOME");
+ ConvertUnixToWindowsPathSeparator(home, home, true);
+
+ if (home)
+ {
+ strncpy(HomeName, home, _MAX_PATH);
+ HomeName[_MAX_PATH] = 0;
+
+ // get MSYS root drive path
+
+ bFlag = GetVolumePathName(
+ home,
+ MsysRootName,
+ sizeof(MsysRootName));
+
+ if (bFlag != 0)
+ {
+ int i = 0;
+ char *srcPath = HomeName + strlen(MsysRootName);
+ char *dstPath = MsysName + strlen(MsysRootName);
+
+ // check that returned path is a prefix of the original path
+ if (0 == strncmp(HomeName, MsysRootName, strlen(MsysRootName)))
+ {
+ // create path to MSYS
+
+ strcpy(MsysName, MsysRootName);
+
+ for(i = 0; (i <= _MAX_PATH ) && (*srcPath) && ( '\\' != *srcPath ) && ( '/' != *srcPath ); i++ )
+ {
+ dstPath[i] = (char)*srcPath++;
+ }
+
+ if (i <= _MAX_PATH)
+ {
+ dstPath[i] = 0;
+ }
+ else
+ {
+ dstPath[_MAX_PATH] = 0;
+ }
+
+ ConvertUnixToWindowsPathSeparator(dstPath, dstPath, true);
+
+ // construct Windows path to /etc
+
+ strcpy(EtcName, MsysName);
+ strcpy(EtcName + strlen(MsysName), "etc");
+
+ ConvertUnixToWindowsPathSeparator(EtcName, EtcName, true);
+
+ // construct Windows path to /etc/fstab
+
+ strcpy(fstabPath, MsysName);
+ strcpy(fstabPath + strlen(MsysName), "etc\\fstab");
+ }
+ else
+ {
+ return false;
+ }
+ }
+ else
+ {
+ return false;
+ }
+
+ // add fstab entries for each drive letter (e.g. /c/ /d/ /e/ ...)
+
+ while (uDriveMask) {
+ if (uDriveMask & 1)
+ {
+ Drive[0] = driveUpper;
+ MsysDrive[1] = driveUpper;
+
+ // add /C/ entry to map
+ SystemTools::FstabMap->insert(std::make_pair(kwsys_stl::string(MsysDrive), kwsys_stl::string(Drive)));
+
+ Drive[0] = drive;
+ MsysDrive[1] = drive;
+
+ // add /c/ entry to map
+ SystemTools::FstabMap->insert(std::make_pair(kwsys_stl::string(MsysDrive), kwsys_stl::string(Drive)));
+
+ VolumePathName[0] = 0;
+
+ bFlag = GetVolumeNameForVolumeMountPointA(
+ Drive, // input volume mount point or directory
+ VolumePathName, // output volume name buffer
+ VolumePathNameSize // size of volume name buffer
+ );
+
+ if (bFlag != 0)
+ {
+ if ('{' == VolumePathName[10])
+ {
+ strncpy(UUIDName, &VolumePathName[11], 36);
+ UUIDName[36] = 0;
+
+ // add \\?\Volume{UUID}\ to UUID map
+ SystemTools::UUIDMap->insert(std::make_pair(kwsys_stl::string(UUIDName), kwsys_stl::string(Drive)));
+ }
+
+ bFlag = GetVolumeInformation(
+ Drive,
+ VolumeName,
+ VolumeNameSize,
+ &VolumeSerialNumber,
+ &MaximumComponentLength,
+ &FileSystemFlags,
+ FileSystemName,
+ FileSystemNameSize
+ );
+
+ if (bFlag != 0)
+ {
+ // add LABEL (volume name) to LABEL map
+ SystemTools::VolumeLabelMap->insert(std::make_pair(kwsys_stl::string(VolumeName), kwsys_stl::string(Drive)));
+ }
+ }
+ }
+
+ ++drive;
+ ++driveUpper;
+ uDriveMask >>= 1;
+ }
+
+ // add fstab entries for /, ~/, /etc/
+
+ // add / entry to map
+ SystemTools::FstabMap->insert(std::make_pair(kwsys_stl::string("/"), kwsys_stl::string(MsysName)));
+
+ // add ~/ entry to map
+ SystemTools::FstabMap->insert(std::make_pair(kwsys_stl::string("~/"), kwsys_stl::string(HomeName)));
+
+ // add /etc/ entry to map
+ SystemTools::FstabMap->insert(std::make_pair(kwsys_stl::string("/etc/"), kwsys_stl::string(EtcName)));
+ }
+ else
+ {
+ return false;
+ }
+
+ return true;
+}
+
+bool SystemTools::fstab_load(char * fstabFileName)
+{
+ int lenLine;
+ char readLineBuffer[FSTAB_MAX_LINE];
+ char writeLineBuffer[FSTAB_MAX_LINE+4]; // add room for an extra character appended to each string
+ char path[_MAX_PATH+1];
+ char *readLineStart = readLineBuffer;
+ char *readLine = readLineBuffer;
+ char *writeLine = writeLineBuffer;
+ bool eol = false;
+ FILE *fp;
+
+ char *fs_spec = NULL;
+ char *fs_mountpoint = NULL;
+ char *fs_type = NULL;
+ char *fs_options = NULL;
+ int fs_dump = 0;
+ int fs_pass = 0;
+
+ FSTAB_LINE_TYPE line_type = FSTAB_LINE_OK;
+
+ // open /etc/fstab file for reading
+ fp = fopen (fstabFileName, "rt");
+
+ if (NULL == fp)
+ {
+ // could not open /etc/fstab file
+ return false;
+ }
+
+ readLineBuffer[0] = 0;
+
+ while(fgets(readLineBuffer, sizeof(readLineBuffer), fp) != NULL)
+ {
+ fs_spec = NULL;
+ fs_mountpoint = NULL;
+ fs_type = NULL;
+ fs_options = NULL;
+ fs_dump = 0;
+ fs_pass = 0;
+
+ eol = false;
+ lenLine = strlen(readLineBuffer);
+ readLine = readLineBuffer;
+ writeLine = writeLineBuffer;
+ *writeLine = 0;
+
+ line_type = fstab_readline(&readLine, &writeLine, &fs_spec, &fs_mountpoint, &fs_type, &fs_options, &fs_dump, &fs_pass);
+
+ // skip comment line
+
+ if (FSTAB_LINE_COMMENT == line_type)
+ {
+ readLineBuffer[0] = 0;
+ continue;
+ }
+
+ // skip blank line
+
+ if (FSTAB_LINE_BLANK == line_type)
+ {
+ readLineBuffer[0] = 0;
+ continue;
+ }
+
+ // add fstab entry to path translation map
+
+ // if fs_spec begins with UUID=, add "\\?\Volume{UUID}\"
+ if (StringStartsWith(fs_spec, "UUID="))
+ {
+ if (SystemTools::UUIDToWin32(&fs_spec[5], path))
+ {
+ AppendUnixPathSeparator(fs_mountpoint);
+ SystemTools::FstabMap->insert(std::make_pair(kwsys_stl::string(fs_mountpoint), kwsys_stl::string(path)));
+ }
+ }
+ // else if fs_spec begins with LABEL= lookup path by volume label and add path
+ else if (StringStartsWith(fs_spec, "LABEL="))
+ {
+ if (SystemTools::VolumeLabelToWin32(&fs_spec[6], path))
+ {
+ AppendUnixPathSeparator(fs_mountpoint);
+ SystemTools::FstabMap->insert(std::make_pair(kwsys_stl::string(fs_mountpoint), kwsys_stl::string(path)));
+ }
+ }
+ // else if fs_spec equals "none", do not add line
+ else if (StringEquals(fs_spec, "none"))
+ {
+ ; // do nothing
+ }
+ // else, add line to path translation map
+ else
+ {
+ ConvertUnixToWindowsPathSeparator(fs_spec, fs_spec, true);
+ AppendUnixPathSeparator(fs_mountpoint);
+ SystemTools::FstabMap->insert(std::make_pair(kwsys_stl::string(fs_mountpoint), kwsys_stl::string(fs_spec)));
+ }
+
+ readLineBuffer[0] = 0;
+ }
+
+ // close /etc/fstab file
+ fclose(fp);
+
+ return true;
+}
+
+#endif
+
bool SystemTools::Touch(const char* filename, bool create)
{
if(create && !SystemTools::FileExists(filename))
@@ -1534,6 +2505,7 @@ void SystemTools::ConvertToUnixSlashes(k
#else
const char* pos0 = pathCString;
const char* pos1 = pathCString+1;
+
for (kwsys_stl::string::size_type pos = 0; *pos0; ++ pos )
{
// make sure we don't convert an escaped space to a unix slash
@@ -1649,11 +2621,19 @@ kwsys_stl::string SystemTools::ConvertTo
kwsys_stl::string SystemTools::ConvertToWindowsOutputPath(const char* path)
{
kwsys_stl::string ret;
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ char winpath[MAX_PATH+1];
+ if(SystemTools::PathMingwToWin32(path, winpath))
+ {
+ path = winpath;
+ }
+#endif
// make it big enough for all of path and double quotes
ret.reserve(strlen(path)+3);
// put path into the string
ret.assign(path);
- ret = path;
+ ret = path;
+
kwsys_stl::string::size_type pos = 0;
// first convert all of the slashes
while((pos = ret.find('/', pos)) != kwsys_stl::string::npos)
@@ -1732,6 +2712,18 @@ bool SystemTools::CopyFileIfDifferent(co
bool SystemTools::FilesDiffer(const char* source,
const char* destination)
{
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ char winpath1[MAX_PATH+1];
+ char winpath2[MAX_PATH+1];
+ if(SystemTools::PathMingwToWin32(source, winpath1))
+ {
+ source = winpath1;
+ }
+ if(SystemTools::PathMingwToWin32(destination, winpath2))
+ {
+ destination = winpath2;
+ }
+#endif
struct stat statSource;
if (stat(source, &statSource) != 0)
{
@@ -1842,7 +2834,13 @@ bool SystemTools::CopyFileAlways(const c
SystemTools::MakeDirectory(destination_dir.c_str());
// Open files
-
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ char winpath1[MAX_PATH+1];
+ if(SystemTools::PathMingwToWin32(source, winpath1))
+ {
+ source = winpath1;
+ }
+#endif
#if defined(_WIN32) || defined(__CYGWIN__)
kwsys_ios::ifstream fin(source,
kwsys_ios::ios::binary | kwsys_ios::ios::in);
@@ -1860,6 +2858,13 @@ bool SystemTools::CopyFileAlways(const c
// that do not allow file removal can be modified.
SystemTools::RemoveFile(destination);
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ char winpath2[MAX_PATH+1];
+ if(SystemTools::PathMingwToWin32(destination, winpath2))
+ {
+ destination = winpath2;
+ }
+#endif
#if defined(_WIN32) || defined(__CYGWIN__)
kwsys_ios::ofstream fout(destination,
kwsys_ios::ios::binary | kwsys_ios::ios::out | kwsys_ios::ios::trunc);
@@ -2135,6 +3140,13 @@ kwsys_stl::string SystemTools::GetLastSy
bool SystemTools::RemoveFile(const char* source)
{
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ char winpath[MAX_PATH+1];
+ if(SystemTools::PathMingwToWin32(source, winpath))
+ {
+ source = winpath;
+ }
+#endif
#ifdef _WIN32
mode_t mode;
if ( !SystemTools::GetPermissions(source, mode) )
@@ -2491,7 +3503,7 @@ kwsys_stl::string SystemTools
return SystemTools::CollapseFullPath(tryPath.c_str());
}
#endif
-#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
+#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__MINGW64__)
tryPath = *p;
tryPath += name;
tryPath += ".lib";
@@ -2562,6 +3574,13 @@ kwsys_stl::string SystemTools::GetRealPa
bool SystemTools::FileIsDirectory(const char* name)
{
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ char winpath[MAX_PATH+1];
+ if(SystemTools::PathMingwToWin32(name, winpath))
+ {
+ name = winpath;
+ }
+#endif
// Remove any trailing slash from the name.
char buffer[KWSYS_SYSTEMTOOLS_MAXPATH];
size_t last = strlen(name)-1;
@@ -3998,6 +5017,14 @@ bool SystemTools::GetPermissions(const c
}
struct stat st;
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ // Convert filename to native windows path if possible.
+ char winpath[MAX_PATH+1];
+ if(SystemTools::PathMingwToWin32(file, winpath))
+ {
+ file = winpath;
+ }
+#endif
if ( stat(file, &st) < 0 )
{
return false;
@@ -4012,6 +5039,14 @@ bool SystemTools::SetPermissions(const c
{
return false;
}
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ // Convert filename to native windows path if possible.
+ char winpath[MAX_PATH+1];
+ if(SystemTools::PathMingwToWin32(file, winpath))
+ {
+ file = winpath;
+ }
+#endif
if ( !SystemTools::FileExists(file) )
{
return false;
@@ -4523,6 +5558,12 @@ SystemToolsTranslationMap *SystemTools::
#ifdef __CYGWIN__
SystemToolsTranslationMap *SystemTools::Cyg2Win32Map;
#endif
+#if defined(__MINGW32__) || defined(__MINGW64__)
+SystemToolsTranslationMap *SystemTools::FstabMap;
+SystemToolsTranslationMap *SystemTools::UUIDMap;
+SystemToolsTranslationMap *SystemTools::VolumeLabelMap;
+SystemToolsTranslationMap *SystemTools::Mingw2Win32Map;
+#endif
// SystemToolsManager manages the SystemTools singleton.
// SystemToolsManager should be included in any translation unit
@@ -4562,6 +5603,9 @@ static int SetVMSFeature(char* name, int
void SystemTools::ClassInitialize()
{
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ char FstabName[MAX_PATH+1];
+#endif
#ifdef __VMS
SetVMSFeature("DECC$FILENAME_UNIX_ONLY", 1);
#endif
@@ -4571,6 +5615,18 @@ void SystemTools::ClassInitialize()
#ifdef __CYGWIN__
SystemTools::Cyg2Win32Map = new SystemToolsTranslationMap;
#endif
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ SystemTools::FstabMap = new SystemToolsTranslationMap;
+ SystemTools::UUIDMap = new SystemToolsTranslationMap;
+ SystemTools::VolumeLabelMap = new SystemToolsTranslationMap;
+ SystemTools::Mingw2Win32Map = new SystemToolsTranslationMap;
+
+ // load /etc/fstab file
+ if (SystemTools::fstab_init(FstabName))
+ {
+ SystemTools::fstab_load(FstabName);
+ }
+#endif
// Add some special translation paths for unix. These are not added
// for windows because drive letters need to be maintained. Also,
@@ -4628,6 +5684,12 @@ void SystemTools::ClassFinalize()
#ifdef __CYGWIN__
delete SystemTools::Cyg2Win32Map;
#endif
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ delete SystemTools::FstabMap;
+ delete SystemTools::UUIDMap;
+ delete SystemTools::VolumeLabelMap;
+ delete SystemTools::Mingw2Win32Map;
+#endif
}
diff -rup a/Source/kwsys/SystemTools.hxx.in b/Source/kwsys/SystemTools.hxx.in
--- a/Source/kwsys/SystemTools.hxx.in 2011-12-30 08:49:57 -0800
+++ b/Source/kwsys/SystemTools.hxx.in 2012-02-24 01:45:38 -0800
@@ -286,6 +286,20 @@ public:
#endif
/**
+ * Converts Mingw path to Win32 path. Uses dictionary container for
+ * caching and calls to mingw_conv_to_win32_path
+ * for actual translation. Returns true on success, else false.
+ */
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ static bool PathMingwToWin32(const char *path, char *win32_path);
+ static bool FstabToWin32(const char *mountpoint, char *win32_path);
+ static bool VolumeLabelToWin32(const char *label, char *win32_path);
+ static bool UUIDToWin32(const char *uuid, char *win32_path);
+ static bool fstab_init(char * fstabPath);
+ static bool fstab_load(char * fstabFileName);
+#endif
+
+ /**
* Return file length
*/
static unsigned long FileLength(const char *filename);
@@ -886,6 +900,12 @@ private:
#ifdef __CYGWIN__
static SystemToolsTranslationMap *Cyg2Win32Map;
#endif
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ static SystemToolsTranslationMap *FstabMap;
+ static SystemToolsTranslationMap *UUIDMap;
+ static SystemToolsTranslationMap *VolumeLabelMap;
+ static SystemToolsTranslationMap *Mingw2Win32Map;
+#endif
friend class SystemToolsManager;
};
diff -rup a/Utilities/cmcurl/setup.h b/Utilities/cmcurl/setup.h
--- a/Utilities/cmcurl/setup.h 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmcurl/setup.h 2012-02-16 01:13:42 -0800
@@ -222,9 +222,18 @@ typedef unsigned char bool;
#if defined(WIN32) && (SIZEOF_CURL_OFF_T > 4)
#include <sys/stat.h> /* must come first before we redefine stat() */
#include <io.h>
+#ifdef lseek
+#undef lseek
+#endif
#define lseek(x,y,z) _lseeki64(x, y, z)
#define struct_stat struct _stati64
+#ifdef stat
+#undef stat
+#endif
#define stat(file,st) _stati64(file,st)
+#ifdef fstat
+#undef fstat
+#endif
#define fstat(fd,st) _fstati64(fd,st)
#else
#define struct_stat struct stat
diff -rup a/Utilities/cmlibarchive/libarchive/archive.h b/Utilities/cmlibarchive/libarchive/archive.h
--- a/Utilities/cmlibarchive/libarchive/archive.h 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive.h 2012-02-16 00:58:18 -0800
@@ -41,7 +41,9 @@
# define __LA_STDINT_H <inttypes.h>
#endif
+#ifndef __MINGW64__
#include <sys/stat.h>
+#endif
#include <sys/types.h> /* Linux requires this for off_t */
#ifdef __LA_STDINT_H
# include __LA_STDINT_H /* int64_t, etc. */
@@ -67,6 +69,9 @@
# define __LA_GID_T short
# endif
#else
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h> /* ssize_t, uid_t, and gid_t */
#if defined(__osf__)
# define __LA_INT64_T long long
diff -rup a/Utilities/cmlibarchive/libarchive/archive_check_magic.c b/Utilities/cmlibarchive/libarchive/archive_check_magic.c
--- a/Utilities/cmlibarchive/libarchive/archive_check_magic.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_check_magic.c 2012-02-16 00:21:48 -0800
@@ -38,6 +38,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
#if defined(_WIN32) && !defined(__CYGWIN__)
diff -rup a/Utilities/cmlibarchive/libarchive/archive_entry.c b/Utilities/cmlibarchive/libarchive/archive_entry.c
--- a/Utilities/cmlibarchive/libarchive/archive_entry.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_entry.c 2012-02-16 00:32:37 -0800
@@ -27,8 +27,10 @@
__FBSDID("$FreeBSD: src/lib/libarchive/archive_entry.c,v 1.55 2008/12/23 05:01:43 kientzle Exp $");
#ifdef HAVE_SYS_STAT_H
+#ifndef __MINGW64__
#include <sys/stat.h>
#endif
+#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_entry_copy_stat.c b/Utilities/cmlibarchive/libarchive/archive_entry_copy_stat.c
--- a/Utilities/cmlibarchive/libarchive/archive_entry_copy_stat.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_entry_copy_stat.c 2012-02-16 00:41:59 -0800
@@ -23,12 +23,12 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "archive_platform.h"
-__FBSDID("$FreeBSD: src/lib/libarchive/archive_entry_copy_stat.c,v 1.2 2008/09/30 03:53:03 kientzle Exp $");
-
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
+// include sys/stat.h before archive_windows.h (included in archive_platform.h)
+#include "archive_platform.h"
+__FBSDID("$FreeBSD: src/lib/libarchive/archive_entry_copy_stat.c,v 1.2 2008/09/30 03:53:03 kientzle Exp $");
#include "archive_entry.h"
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read.c b/Utilities/cmlibarchive/libarchive/archive_read.c
--- a/Utilities/cmlibarchive/libarchive/archive_read.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read.c 2012-02-16 00:22:35 -0800
@@ -45,6 +45,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_data_into_fd.c b/Utilities/cmlibarchive/libarchive/archive_read_data_into_fd.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_data_into_fd.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_data_into_fd.c 2012-02-16 00:23:45 -0800
@@ -33,6 +33,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <errno.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_open_fd.c b/Utilities/cmlibarchive/libarchive/archive_read_open_fd.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_open_fd.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_open_fd.c 2012-02-16 00:45:52 -0800
@@ -45,6 +45,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_open_file.c b/Utilities/cmlibarchive/libarchive/archive_read_open_file.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_open_file.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_open_file.c 2012-02-16 00:46:22 -0800
@@ -45,6 +45,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c b/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c 2012-02-16 00:46:56 -0800
@@ -45,6 +45,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_bzip2.c b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_bzip2.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_bzip2.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_bzip2.c 2012-02-16 00:47:43 -0800
@@ -38,6 +38,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
#ifdef HAVE_BZLIB_H
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_compress.c b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_compress.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_compress.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_compress.c 2012-02-16 00:47:58 -0800
@@ -76,6 +76,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_gzip.c b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_gzip.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_gzip.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_gzip.c 2012-02-16 00:48:13 -0800
@@ -38,6 +38,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
#ifdef HAVE_ZLIB_H
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_program.c b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_program.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_program.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_program.c 2012-02-16 00:48:43 -0800
@@ -48,6 +48,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
# include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
# include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_xz.c b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_xz.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_xz.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_xz.c 2012-02-16 00:48:57 -0800
@@ -39,6 +39,9 @@ __FBSDID("$FreeBSD$");
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
#if HAVE_LZMA_H
diff -rup a/Utilities/cmlibarchive/libarchive/archive_windows.h b/Utilities/cmlibarchive/libarchive/archive_windows.h
--- a/Utilities/cmlibarchive/libarchive/archive_windows.h 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_windows.h 2012-02-16 01:00:42 -0800
@@ -56,6 +56,9 @@
#include <stdlib.h> /* brings in NULL */
#include <stdio.h>
#include <fcntl.h>
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <sys/stat.h>
#include <process.h>
#include <direct.h>
@@ -103,11 +106,20 @@
#ifndef fileno
#define fileno _fileno
#endif
+#ifdef fstat
+#undef fstat
+#endif
#define fstat __la_fstat
+#ifdef ftruncate
+#undef ftruncate
+#endif
#define ftruncate __la_ftruncate
#define futimes __la_futimes
#define getcwd _getcwd
#define link __la_link
+#ifdef lseek
+#undef lseek
+#endif
#define lseek __la_lseek
#define lstat __la_stat
#define mbstowcs __la_mbstowcs
@@ -116,6 +128,9 @@
#define open __la_open
#define read __la_read
#define rmdir __la_rmdir
+#ifdef stat
+#undef stat
+#endif
#define stat(path,stref) __la_stat(path,stref)
#ifndef __BORLANDC__
#define strdup _strdup
diff -rup a/Utilities/cmlibarchive/libarchive/archive_write.c b/Utilities/cmlibarchive/libarchive/archive_write.c
--- a/Utilities/cmlibarchive/libarchive/archive_write.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_write.c 2012-02-16 00:49:21 -0800
@@ -49,6 +49,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#endif
#include <time.h>
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_write_disk.c b/Utilities/cmlibarchive/libarchive/archive_write_disk.c
--- a/Utilities/cmlibarchive/libarchive/archive_write_disk.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_write_disk.c 2012-02-16 00:50:05 -0800
@@ -90,6 +90,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
#ifdef HAVE_UTIME_H
diff -rup a/Utilities/cmlibarchive/libarchive/archive_write_open_fd.c b/Utilities/cmlibarchive/libarchive/archive_write_open_fd.c
--- a/Utilities/cmlibarchive/libarchive/archive_write_open_fd.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_write_open_fd.c 2012-02-16 00:50:30 -0800
@@ -45,6 +45,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_write_open_file.c b/Utilities/cmlibarchive/libarchive/archive_write_open_file.c
--- a/Utilities/cmlibarchive/libarchive/archive_write_open_file.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_write_open_file.c 2012-02-16 00:50:55 -0800
@@ -42,6 +42,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_write_open_filename.c b/Utilities/cmlibarchive/libarchive/archive_write_open_filename.c
--- a/Utilities/cmlibarchive/libarchive/archive_write_open_filename.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_write_open_filename.c 2012-02-16 00:51:17 -0800
@@ -42,6 +42,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/filter_fork.c b/Utilities/cmlibarchive/libarchive/filter_fork.c
--- a/Utilities/cmlibarchive/libarchive/filter_fork.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/filter_fork.c 2012-02-16 00:51:39 -0800
@@ -48,6 +48,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/f
# include <fcntl.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
# include <unistd.h>
#endif
cmake-2.8.7-mingw-w64.patch [^] (13,015 bytes) 2012-02-29 01:59 [Show Content] [Hide Content]diff -rup a/Utilities/cmcurl/setup.h b/Utilities/cmcurl/setup.h
--- a/Utilities/cmcurl/setup.h 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmcurl/setup.h 2012-02-16 01:13:42 -0800
@@ -222,9 +222,18 @@ typedef unsigned char bool;
#if defined(WIN32) && (SIZEOF_CURL_OFF_T > 4)
#include <sys/stat.h> /* must come first before we redefine stat() */
#include <io.h>
+#ifdef lseek
+#undef lseek
+#endif
#define lseek(x,y,z) _lseeki64(x, y, z)
#define struct_stat struct _stati64
+#ifdef stat
+#undef stat
+#endif
#define stat(file,st) _stati64(file,st)
+#ifdef fstat
+#undef fstat
+#endif
#define fstat(fd,st) _fstati64(fd,st)
#else
#define struct_stat struct stat
diff -rup a/Utilities/cmlibarchive/libarchive/archive.h b/Utilities/cmlibarchive/libarchive/archive.h
--- a/Utilities/cmlibarchive/libarchive/archive.h 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive.h 2012-02-16 00:58:18 -0800
@@ -41,7 +41,9 @@
# define __LA_STDINT_H <inttypes.h>
#endif
+#ifndef __MINGW64__
#include <sys/stat.h>
+#endif
#include <sys/types.h> /* Linux requires this for off_t */
#ifdef __LA_STDINT_H
# include __LA_STDINT_H /* int64_t, etc. */
@@ -67,6 +69,9 @@
# define __LA_GID_T short
# endif
#else
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h> /* ssize_t, uid_t, and gid_t */
#if defined(__osf__)
# define __LA_INT64_T long long
diff -rup a/Utilities/cmlibarchive/libarchive/archive_check_magic.c b/Utilities/cmlibarchive/libarchive/archive_check_magic.c
--- a/Utilities/cmlibarchive/libarchive/archive_check_magic.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_check_magic.c 2012-02-16 00:21:48 -0800
@@ -38,6 +38,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
#if defined(_WIN32) && !defined(__CYGWIN__)
diff -rup a/Utilities/cmlibarchive/libarchive/archive_entry.c b/Utilities/cmlibarchive/libarchive/archive_entry.c
--- a/Utilities/cmlibarchive/libarchive/archive_entry.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_entry.c 2012-02-16 00:32:37 -0800
@@ -27,8 +27,10 @@
__FBSDID("$FreeBSD: src/lib/libarchive/archive_entry.c,v 1.55 2008/12/23 05:01:43 kientzle Exp $");
#ifdef HAVE_SYS_STAT_H
+#ifndef __MINGW64__
#include <sys/stat.h>
#endif
+#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_entry_copy_stat.c b/Utilities/cmlibarchive/libarchive/archive_entry_copy_stat.c
--- a/Utilities/cmlibarchive/libarchive/archive_entry_copy_stat.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_entry_copy_stat.c 2012-02-16 00:41:59 -0800
@@ -23,12 +23,12 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "archive_platform.h"
-__FBSDID("$FreeBSD: src/lib/libarchive/archive_entry_copy_stat.c,v 1.2 2008/09/30 03:53:03 kientzle Exp $");
-
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
+// include sys/stat.h before archive_windows.h (included in archive_platform.h)
+#include "archive_platform.h"
+__FBSDID("$FreeBSD: src/lib/libarchive/archive_entry_copy_stat.c,v 1.2 2008/09/30 03:53:03 kientzle Exp $");
#include "archive_entry.h"
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read.c b/Utilities/cmlibarchive/libarchive/archive_read.c
--- a/Utilities/cmlibarchive/libarchive/archive_read.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read.c 2012-02-16 00:22:35 -0800
@@ -45,6 +45,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_data_into_fd.c b/Utilities/cmlibarchive/libarchive/archive_read_data_into_fd.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_data_into_fd.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_data_into_fd.c 2012-02-16 00:23:45 -0800
@@ -33,6 +33,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <errno.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_open_fd.c b/Utilities/cmlibarchive/libarchive/archive_read_open_fd.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_open_fd.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_open_fd.c 2012-02-16 00:45:52 -0800
@@ -45,6 +45,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_open_file.c b/Utilities/cmlibarchive/libarchive/archive_read_open_file.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_open_file.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_open_file.c 2012-02-16 00:46:22 -0800
@@ -45,6 +45,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c b/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c 2012-02-16 00:46:56 -0800
@@ -45,6 +45,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_bzip2.c b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_bzip2.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_bzip2.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_bzip2.c 2012-02-16 00:47:43 -0800
@@ -38,6 +38,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
#ifdef HAVE_BZLIB_H
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_compress.c b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_compress.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_compress.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_compress.c 2012-02-16 00:47:58 -0800
@@ -76,6 +76,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_gzip.c b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_gzip.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_gzip.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_gzip.c 2012-02-16 00:48:13 -0800
@@ -38,6 +38,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
#ifdef HAVE_ZLIB_H
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_program.c b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_program.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_program.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_program.c 2012-02-16 00:48:43 -0800
@@ -48,6 +48,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
# include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
# include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_xz.c b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_xz.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_xz.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_xz.c 2012-02-16 00:48:57 -0800
@@ -39,6 +39,9 @@ __FBSDID("$FreeBSD$");
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
#if HAVE_LZMA_H
diff -rup a/Utilities/cmlibarchive/libarchive/archive_windows.h b/Utilities/cmlibarchive/libarchive/archive_windows.h
--- a/Utilities/cmlibarchive/libarchive/archive_windows.h 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_windows.h 2012-02-16 01:00:42 -0800
@@ -56,6 +56,9 @@
#include <stdlib.h> /* brings in NULL */
#include <stdio.h>
#include <fcntl.h>
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <sys/stat.h>
#include <process.h>
#include <direct.h>
@@ -103,11 +106,20 @@
#ifndef fileno
#define fileno _fileno
#endif
+#ifdef fstat
+#undef fstat
+#endif
#define fstat __la_fstat
+#ifdef ftruncate
+#undef ftruncate
+#endif
#define ftruncate __la_ftruncate
#define futimes __la_futimes
#define getcwd _getcwd
#define link __la_link
+#ifdef lseek
+#undef lseek
+#endif
#define lseek __la_lseek
#define lstat __la_stat
#define mbstowcs __la_mbstowcs
@@ -116,6 +128,9 @@
#define open __la_open
#define read __la_read
#define rmdir __la_rmdir
+#ifdef stat
+#undef stat
+#endif
#define stat(path,stref) __la_stat(path,stref)
#ifndef __BORLANDC__
#define strdup _strdup
diff -rup a/Utilities/cmlibarchive/libarchive/archive_write.c b/Utilities/cmlibarchive/libarchive/archive_write.c
--- a/Utilities/cmlibarchive/libarchive/archive_write.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_write.c 2012-02-16 00:49:21 -0800
@@ -49,6 +49,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#endif
#include <time.h>
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_write_disk.c b/Utilities/cmlibarchive/libarchive/archive_write_disk.c
--- a/Utilities/cmlibarchive/libarchive/archive_write_disk.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_write_disk.c 2012-02-16 00:50:05 -0800
@@ -90,6 +90,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
#ifdef HAVE_UTIME_H
diff -rup a/Utilities/cmlibarchive/libarchive/archive_write_open_fd.c b/Utilities/cmlibarchive/libarchive/archive_write_open_fd.c
--- a/Utilities/cmlibarchive/libarchive/archive_write_open_fd.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_write_open_fd.c 2012-02-16 00:50:30 -0800
@@ -45,6 +45,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_write_open_file.c b/Utilities/cmlibarchive/libarchive/archive_write_open_file.c
--- a/Utilities/cmlibarchive/libarchive/archive_write_open_file.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_write_open_file.c 2012-02-16 00:50:55 -0800
@@ -42,6 +42,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_write_open_filename.c b/Utilities/cmlibarchive/libarchive/archive_write_open_filename.c
--- a/Utilities/cmlibarchive/libarchive/archive_write_open_filename.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_write_open_filename.c 2012-02-16 00:51:17 -0800
@@ -42,6 +42,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/filter_fork.c b/Utilities/cmlibarchive/libarchive/filter_fork.c
--- a/Utilities/cmlibarchive/libarchive/filter_fork.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/filter_fork.c 2012-02-16 00:51:39 -0800
@@ -48,6 +48,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/f
# include <fcntl.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
# include <unistd.h>
#endif
CMakeError.log [^] (466,732 bytes) 2012-02-29 17:20
cmake-2.8.7-mingw-w64-updated.patch [^] (11,364 bytes) 2012-02-29 17:21 [Show Content] [Hide Content]diff -rup a/Utilities/cmcurl/setup.h b/Utilities/cmcurl/setup.h
--- a/Utilities/cmcurl/setup.h 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmcurl/setup.h 2012-02-29 13:13:19 -0800
@@ -222,9 +222,18 @@ typedef unsigned char bool;
#if defined(WIN32) && (SIZEOF_CURL_OFF_T > 4)
#include <sys/stat.h> /* must come first before we redefine stat() */
#include <io.h>
+#ifdef lseek
+#undef lseek
+#endif
#define lseek(x,y,z) _lseeki64(x, y, z)
#define struct_stat struct _stati64
+#ifdef stat
+#undef stat
+#endif
#define stat(file,st) _stati64(file,st)
+#ifdef fstat
+#undef fstat
+#endif
#define fstat(fd,st) _fstati64(fd,st)
#else
#define struct_stat struct stat
diff -rup a/Utilities/cmlibarchive/libarchive/archive.h b/Utilities/cmlibarchive/libarchive/archive.h
--- a/Utilities/cmlibarchive/libarchive/archive.h 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive.h 2012-02-29 12:49:53 -0800
@@ -67,6 +67,9 @@
# define __LA_GID_T short
# endif
#else
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h> /* ssize_t, uid_t, and gid_t */
#if defined(__osf__)
# define __LA_INT64_T long long
diff -rup a/Utilities/cmlibarchive/libarchive/archive_check_magic.c b/Utilities/cmlibarchive/libarchive/archive_check_magic.c
--- a/Utilities/cmlibarchive/libarchive/archive_check_magic.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_check_magic.c 2012-02-29 12:33:16 -0800
@@ -38,6 +38,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
#if defined(_WIN32) && !defined(__CYGWIN__)
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read.c b/Utilities/cmlibarchive/libarchive/archive_read.c
--- a/Utilities/cmlibarchive/libarchive/archive_read.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read.c 2012-02-29 12:33:55 -0800
@@ -45,6 +45,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_data_into_fd.c b/Utilities/cmlibarchive/libarchive/archive_read_data_into_fd.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_data_into_fd.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_data_into_fd.c 2012-02-29 12:35:48 -0800
@@ -33,6 +33,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <errno.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_open_fd.c b/Utilities/cmlibarchive/libarchive/archive_read_open_fd.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_open_fd.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_open_fd.c 2012-02-29 12:36:58 -0800
@@ -45,6 +45,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_open_file.c b/Utilities/cmlibarchive/libarchive/archive_read_open_file.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_open_file.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_open_file.c 2012-02-29 12:36:37 -0800
@@ -45,6 +45,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c b/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c 2012-02-29 12:37:30 -0800
@@ -45,6 +45,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_bzip2.c b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_bzip2.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_bzip2.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_bzip2.c 2012-02-29 12:37:41 -0800
@@ -38,6 +38,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
#ifdef HAVE_BZLIB_H
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_compress.c b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_compress.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_compress.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_compress.c 2012-02-29 12:37:55 -0800
@@ -76,6 +76,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_gzip.c b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_gzip.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_gzip.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_gzip.c 2012-02-29 12:38:10 -0800
@@ -38,6 +38,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
#ifdef HAVE_ZLIB_H
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_program.c b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_program.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_program.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_program.c 2012-02-29 12:42:10 -0800
@@ -48,6 +48,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
# include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
# include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_xz.c b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_xz.c
--- a/Utilities/cmlibarchive/libarchive/archive_read_support_compression_xz.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_read_support_compression_xz.c 2012-02-29 12:38:29 -0800
@@ -39,6 +39,9 @@ __FBSDID("$FreeBSD$");
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
#if HAVE_LZMA_H
diff -rup a/Utilities/cmlibarchive/libarchive/archive_windows.h b/Utilities/cmlibarchive/libarchive/archive_windows.h
--- a/Utilities/cmlibarchive/libarchive/archive_windows.h 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_windows.h 2012-02-29 13:10:56 -0800
@@ -56,6 +56,9 @@
#include <stdlib.h> /* brings in NULL */
#include <stdio.h>
#include <fcntl.h>
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <sys/stat.h>
#include <process.h>
#include <direct.h>
@@ -103,11 +106,20 @@
#ifndef fileno
#define fileno _fileno
#endif
+#ifdef fstat
+#undef fstat
+#endif
#define fstat __la_fstat
+#ifdef ftruncate
+#undef ftruncate
+#endif
#define ftruncate __la_ftruncate
#define futimes __la_futimes
#define getcwd _getcwd
#define link __la_link
+#ifdef lseek
+#undef lseek
+#endif
#define lseek __la_lseek
#define lstat __la_stat
#define mbstowcs __la_mbstowcs
@@ -116,6 +128,9 @@
#define open __la_open
#define read __la_read
#define rmdir __la_rmdir
+#ifdef stat
+#undef stat
+#endif
#define stat(path,stref) __la_stat(path,stref)
#ifndef __BORLANDC__
#define strdup _strdup
diff -rup a/Utilities/cmlibarchive/libarchive/archive_write.c b/Utilities/cmlibarchive/libarchive/archive_write.c
--- a/Utilities/cmlibarchive/libarchive/archive_write.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_write.c 2012-02-29 12:38:55 -0800
@@ -49,6 +49,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#endif
#include <time.h>
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_write_disk.c b/Utilities/cmlibarchive/libarchive/archive_write_disk.c
--- a/Utilities/cmlibarchive/libarchive/archive_write_disk.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_write_disk.c 2012-02-29 12:39:02 -0800
@@ -90,6 +90,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
#ifdef HAVE_UTIME_H
diff -rup a/Utilities/cmlibarchive/libarchive/archive_write_open_fd.c b/Utilities/cmlibarchive/libarchive/archive_write_open_fd.c
--- a/Utilities/cmlibarchive/libarchive/archive_write_open_fd.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_write_open_fd.c 2012-02-29 12:39:11 -0800
@@ -45,6 +45,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_write_open_file.c b/Utilities/cmlibarchive/libarchive/archive_write_open_file.c
--- a/Utilities/cmlibarchive/libarchive/archive_write_open_file.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_write_open_file.c 2012-02-29 12:39:19 -0800
@@ -42,6 +42,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/archive_write_open_filename.c b/Utilities/cmlibarchive/libarchive/archive_write_open_filename.c
--- a/Utilities/cmlibarchive/libarchive/archive_write_open_filename.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_write_open_filename.c 2012-02-29 12:39:30 -0800
@@ -42,6 +42,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/a
#include <string.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h>
#endif
diff -rup a/Utilities/cmlibarchive/libarchive/filter_fork.c b/Utilities/cmlibarchive/libarchive/filter_fork.c
--- a/Utilities/cmlibarchive/libarchive/filter_fork.c 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/filter_fork.c 2012-02-29 12:40:25 -0800
@@ -48,6 +48,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/f
# include <fcntl.h>
#endif
#ifdef HAVE_UNISTD_H
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
# include <unistd.h>
#endif
CMakeError-with-patches.log [^] (550,619 bytes) 2012-03-01 18:51
cmake-2.8.7-mingw-w64-update2.patch [^] (2,623 bytes) 2012-03-02 07:37 [Show Content] [Hide Content]diff -rup a/Utilities/cmcurl/setup.h b/Utilities/cmcurl/setup.h
--- a/Utilities/cmcurl/setup.h 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmcurl/setup.h 2012-03-01 16:04:10 -0800
@@ -222,9 +222,18 @@ typedef unsigned char bool;
#if defined(WIN32) && (SIZEOF_CURL_OFF_T > 4)
#include <sys/stat.h> /* must come first before we redefine stat() */
#include <io.h>
+#ifdef lseek
+#undef lseek
+#endif
#define lseek(x,y,z) _lseeki64(x, y, z)
#define struct_stat struct _stati64
+#ifdef stat
+#undef stat
+#endif
#define stat(file,st) _stati64(file,st)
+#ifdef fstat
+#undef fstat
+#endif
#define fstat(fd,st) _fstati64(fd,st)
#else
#define struct_stat struct stat
diff -rup a/Utilities/cmlibarchive/libarchive/archive.h b/Utilities/cmlibarchive/libarchive/archive.h
--- a/Utilities/cmlibarchive/libarchive/archive.h 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive.h 2012-03-01 16:04:10 -0800
@@ -41,7 +41,9 @@
# define __LA_STDINT_H <inttypes.h>
#endif
+#ifndef __MINGW64__
#include <sys/stat.h>
+#endif
#include <sys/types.h> /* Linux requires this for off_t */
#ifdef __LA_STDINT_H
# include __LA_STDINT_H /* int64_t, etc. */
@@ -67,6 +69,9 @@
# define __LA_GID_T short
# endif
#else
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <unistd.h> /* ssize_t, uid_t, and gid_t */
#if defined(__osf__)
# define __LA_INT64_T long long
diff -rup a/Utilities/cmlibarchive/libarchive/archive_windows.h b/Utilities/cmlibarchive/libarchive/archive_windows.h
--- a/Utilities/cmlibarchive/libarchive/archive_windows.h 2011-12-30 08:49:58 -0800
+++ b/Utilities/cmlibarchive/libarchive/archive_windows.h 2012-03-01 16:04:10 -0800
@@ -56,6 +56,9 @@
#include <stdlib.h> /* brings in NULL */
#include <stdio.h>
#include <fcntl.h>
+#ifdef __MINGW64__
+#define FTRUNCATE_DEFINED
+#endif
#include <sys/stat.h>
#include <process.h>
#include <direct.h>
@@ -103,11 +106,20 @@
#ifndef fileno
#define fileno _fileno
#endif
+#ifdef fstat
+#undef fstat
+#endif
#define fstat __la_fstat
+#ifdef ftruncate
+#undef ftruncate
+#endif
#define ftruncate __la_ftruncate
#define futimes __la_futimes
#define getcwd _getcwd
#define link __la_link
+#ifdef lseek
+#undef lseek
+#endif
#define lseek __la_lseek
#define lstat __la_stat
#define mbstowcs __la_mbstowcs
@@ -116,6 +128,9 @@
#define open __la_open
#define read __la_read
#define rmdir __la_rmdir
+#ifdef stat
+#undef stat
+#endif
#define stat(path,stref) __la_stat(path,stref)
#ifndef __BORLANDC__
#define strdup _strdup
FindPackageTestFiles.txt [^] (11,378 bytes) 2012-03-02 16:34 [Show Content] [Hide Content]C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\A
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\B
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Baz 1.1
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Baz 1.2
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Boo123ConfigVersion.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeCache.txt
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeFiles
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeLists.txt
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeTestSystemPackage.data
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\FindPackageHandleStandardArgs.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\FindPackageTest.cxx
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\FindRecursiveA.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\FindRecursiveB.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\FindRecursiveC.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\FindVersionTestA.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\FindVersionTestB.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\FindVersionTestC.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\FindVersionTestD.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Foo123ConfigVersion.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\include
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\SystemPackage
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\TApp.app
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\TFramework.framework
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\A\wibble-config.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\B\wibble-config.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Baz 1.1\BazConfig.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Baz 1.1\BazConfigVersion.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Baz 1.2\CMake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Baz 1.2\CMake\BazConfig.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Baz 1.2\CMake\BazConfigVersion.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeFiles\cmake.check_cache
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeFiles\CMakeCCompiler.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeFiles\CMakeCXXCompiler.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeFiles\CMakeDetermineCompilerABI_C.bin
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeFiles\CMakeDetermineCompilerABI_CXX.bin
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeFiles\CMakeOutput.log
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeFiles\CMakeRCCompiler.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeFiles\CMakeSystem.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeFiles\CMakeTmp
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeFiles\CompilerIdC
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeFiles\CompilerIdCXX
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeFiles\CMakeTmp\CMakeFiles
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeFiles\CMakeTmp\CMakeFiles\cmTryCompileExec.dir
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeFiles\CompilerIdC\a.exe
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeFiles\CompilerIdC\CMakeCCompilerId.c
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeFiles\CompilerIdCXX\a.exe
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\CMakeFiles\CompilerIdCXX\CMakeCXXCompilerId.cpp
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeCache.txt
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeLists.txt
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeTestExportPackageConfig.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeTestExportPackageConfig.cmake.in
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeTestExportPackageConfigVersion.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeTestExportPackageConfigVersion.cmake.in
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\cmake_install.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\dummy.c
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\dummy.exe
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\Makefile
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles\cmake.check_cache
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles\CMakeDirectoryInformation.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles\dummy.dir
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles\Makefile.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles\Makefile2
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles\progress.marks
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles\TargetDirectories.txt
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles\dummy.dir\build.make
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles\dummy.dir\C.includecache
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles\dummy.dir\cmake_clean.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles\dummy.dir\depend.internal
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles\dummy.dir\depend.make
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles\dummy.dir\DependInfo.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles\dummy.dir\dummy.c.obj
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles\dummy.dir\flags.make
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles\dummy.dir\objects.a
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles\dummy.dir\objects1.rsp
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\Exporter\CMakeFiles\dummy.dir\progress.make
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\include\foo.h
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\arch
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\Bar
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\Blub
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\foo-1.2
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\RecursiveA
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\suffix
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\TApp
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\zot
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\zot-1.0
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\zot-2.0
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\zot-3.0
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\zot-3.1
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\arch\Bar
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\arch\cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\arch\foo-1.2
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\arch\zot-3.1
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\arch\Bar\BarConfig.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\arch\cmake\zot-4.0
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\arch\cmake\zot-4.0\zot-config-version.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\arch\cmake\zot-4.0\zot-config.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\arch\foo-1.2\CMake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\arch\foo-1.2\CMake\FooConfig.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\arch\zot-3.1\zot-config-version.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\arch\zot-3.1\zot-config.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\Bar\BarConfig.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\Bar\cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\Bar\cmake\bar-config.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\Blub\BlubConfig.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\cmake\zot-3.1
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\cmake\zot-4.0
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\cmake\zot-3.1\zot-config-version.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\cmake\zot-3.1\zot-config.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\cmake\zot-4.0\zot-config-version.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\cmake\zot-4.0\zot-config.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\foo-1.2\CMake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\foo-1.2\foo-config.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\foo-1.2\CMake\FooConfig.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\RecursiveA\recursivea-config.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\suffix\test
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\suffix\test\SuffixTestConfig.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\suffix\test\SuffixTestConfigVersion.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\TApp\TAppConfig.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\zot\zot-config-version.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\zot\zot-config.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\zot-1.0\zot-config.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\zot-2.0\zot-config-version.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\zot-2.0\zot-config.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\zot-3.0\zot-config-version.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\zot-3.0\zot-config.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\zot-3.1\zot-config-version.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\lib\zot-3.1\zot-config.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\SystemPackage\CMakeTestSystemPackageConfig.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\TApp.app\Contents
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\TApp.app\Contents\Resources
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\TApp.app\Contents\Resources\cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\TApp.app\Contents\Resources\TAppConfig.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\TApp.app\Contents\Resources\cmake\tapp-config.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\TFramework.framework\Versions
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\TFramework.framework\Versions\A
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\TFramework.framework\Versions\A\Resources
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\TFramework.framework\Versions\A\Resources\CMake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\TFramework.framework\Versions\A\Resources\tframework-config.cmake
C:\work\sources\cmake-2.8.7\Tests\FindPackageTest\TFramework.framework\Versions\A\Resources\CMake\TFrameworkConfig.cmake
|