From cc770e7670800819231ac428b75d8fc87a229116 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 14 Sep 2016 11:49:24 -0400 Subject: cmake: Make FindCacheFile a static method It does not need access to member data. --- Source/cmake.cxx | 2 +- Source/cmake.h | 2 +- 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*); -- cgit v0.12