diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 0d61a3dd8..18a78941d 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 30661d9fa..6095a59ae 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*);