mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
stringapi: Use strings for search paths
This commit is contained in:
@@ -359,7 +359,7 @@ std::string cmMakeDepend::FullPath(const char* fname, const char *extraPath)
|
||||
}
|
||||
|
||||
// Add a directory to the search path
|
||||
void cmMakeDepend::AddSearchPath(const char* path)
|
||||
void cmMakeDepend::AddSearchPath(const std::string& path)
|
||||
{
|
||||
this->IncludeDirectories.push_back(path);
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ public:
|
||||
/**
|
||||
* Add a directory to the search path for include files.
|
||||
*/
|
||||
virtual void AddSearchPath(const char*);
|
||||
virtual void AddSearchPath(const std::string&);
|
||||
|
||||
/**
|
||||
* Generate dependencies for the file given. Returns a pointer to
|
||||
|
||||
Reference in New Issue
Block a user