diff options
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 2f4100f..71af58c 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1024,9 +1024,8 @@ int cmake::ExecuteCMakeCommand(std::vector<std::string>& args) fclose(progFile); } } - cmsys::Directory dir; - dir.Load(dirName.c_str()); - int fileNum = static_cast<int>(dir.GetNumberOfFiles()); + int fileNum = static_cast<int> + (cmsys::Directory::GetNumberOfFilesInDirectory(dirName.c_str())); // read the count fName = dirName; fName += "/count.txt"; |