summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-09-14 15:49:24 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-14 15:49:24 (GMT)
commitcc770e7670800819231ac428b75d8fc87a229116 (patch)
tree40f76bf2c20b0ae906d6014f284bbe63aec85590
parentea69e03afaeff76d2141ab4a330f3489297a3a41 (diff)
downloadCMake-cc770e7670800819231ac428b75d8fc87a229116.zip
CMake-cc770e7670800819231ac428b75d8fc87a229116.tar.gz
CMake-cc770e7670800819231ac428b75d8fc87a229116.tar.bz2
cmake: Make FindCacheFile a static method
It does not need access to member data.
-rw-r--r--Source/cmake.cxx2
-rw-r--r--Source/cmake.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 0d61a3d..18a7894 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -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);
diff --git a/Source/cmake.h b/Source/cmake.h
index 30661d9..6095a59 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -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*);