cmLib.c: Added kFulPathFsFl to directory scan in cmLibScan() to return full path to library files.

This commit is contained in:
kevin 2013-03-21 08:25:57 -07:00
parent bb8f746910
commit 0e865f149f

View File

@ -245,7 +245,7 @@ cmLibRC_t cmLibScan( cmLibH_t h, const cmChar_t* dirStr )
if( cmFileSysIsValid(p->fsH) == false ) if( cmFileSysIsValid(p->fsH) == false )
return cmErrMsg(&p->err,kFileSysFailLibRC,"The file system object was not successfully initialized."); return cmErrMsg(&p->err,kFileSysFailLibRC,"The file system object was not successfully initialized.");
if((d = cmFileSysDirEntries(p->fsH, dirStr, kFileFsFl, &dirEntryCnt )) != NULL ) if((d = cmFileSysDirEntries(p->fsH, dirStr, kFileFsFl | kFullPathFsFl, &dirEntryCnt )) == NULL )
return cmErrMsg(&p->err,kFileSysFailLibRC,"The scan of directory '%s' failed.",cmStringNullGuard(dirStr)); return cmErrMsg(&p->err,kFileSysFailLibRC,"The scan of directory '%s' failed.",cmStringNullGuard(dirStr));
for(i=0; i<dirEntryCnt; ++i) for(i=0; i<dirEntryCnt; ++i)