summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2019-01-21 17:56:51 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2019-01-21 17:56:51 (GMT)
commit2993fc347af5db802721f1bbe0a0e05d19a28e89 (patch)
treeee8db722bd720ec04c454d113215377dc38165c6 /Source/cmFindPackageCommand.cxx
parent02f7e997e939dbd0c753514edcd580083cebd37c (diff)
downloadCMake-2993fc347af5db802721f1bbe0a0e05d19a28e89.zip
CMake-2993fc347af5db802721f1bbe0a0e05d19a28e89.tar.gz
CMake-2993fc347af5db802721f1bbe0a0e05d19a28e89.tar.bz2
cmMakefile: GetModulesFile() accepts std::string param
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r--Source/cmFindPackageCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index 9ae1cb9..97ef481 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -663,7 +663,7 @@ bool cmFindPackageCommand::FindModule(bool& found)
module += this->Name;
module += ".cmake";
bool system = false;
- std::string mfile = this->Makefile->GetModulesFile(module.c_str(), system);
+ std::string mfile = this->Makefile->GetModulesFile(module, system);
if (!mfile.empty()) {
if (system) {
auto it = this->DeprecatedFindModules.find(this->Name);