mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-09 23:44:00 +03:00
cmake: Make FindCacheFile a static method
It does not need access to member data.
This commit is contained in:
1 parent
ea69e03afa
commit
cc770e7670
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1046,7 +1046,7 @@ const char* cmake::GetHomeOutputDirectory() const
|
||||
return this->State->GetBinaryDirectory();
|
||||
}
|
||||
|
||||
std::string cmake::FindCacheFile(const std::string& binaryDir) const
|
||||
std::string cmake::FindCacheFile(const std::string& binaryDir)
|
||||
{
|
||||
std::string cachePath = binaryDir;
|
||||
cmSystemTools::ConvertToUnixSlashes(cachePath);
|
||||
|
||||
+1
-1
@@ -194,7 +194,7 @@ public:
|
||||
}
|
||||
|
||||
///! Return the full path to where the CMakeCache.txt file should be.
|
||||
std::string FindCacheFile(const std::string& binaryDir) const;
|
||||
static std::string FindCacheFile(const std::string& binaryDir);
|
||||
|
||||
///! Return the global generator assigned to this instance of cmake
|
||||
void SetGlobalGenerator(cmGlobalGenerator*);
|
||||
|
||||
Reference in new issue
Block a user