summaryrefslogtreecommitdiffstats
path: root/Source/cmDepends.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-04-10 15:30:24 (GMT)
committerBrad King <brad.king@kitware.com>2020-04-13 15:03:00 (GMT)
commit1639ee70ef7986c4c6ad72db1b2552bcaa5b88fa (patch)
treee510ecf4801fa2a814df41cc9d5680b0ef0876cb /Source/cmDepends.h
parent413d26030f559c9871d94b7c99cda305d53525c8 (diff)
downloadCMake-1639ee70ef7986c4c6ad72db1b2552bcaa5b88fa.zip
CMake-1639ee70ef7986c4c6ad72db1b2552bcaa5b88fa.tar.gz
CMake-1639ee70ef7986c4c6ad72db1b2552bcaa5b88fa.tar.bz2
cmDepends: Update types to always use a Makefile generator
We only use these classes with a `cmLocalUnixMakefileGenerator3`. Construct using that type instead of just `cmLocalGenerator` so that the Makefile-specific methods are available.
Diffstat (limited to 'Source/cmDepends.h')
-rw-r--r--Source/cmDepends.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/cmDepends.h b/Source/cmDepends.h
index d938775..8cf528f 100644
--- a/Source/cmDepends.h
+++ b/Source/cmDepends.h
@@ -12,7 +12,7 @@
#include <vector>
class cmFileTimeCache;
-class cmLocalGenerator;
+class cmLocalUnixMakefileGenerator3;
/** \class cmDepends
* \brief Dependency scanner superclass.
@@ -29,7 +29,8 @@ public:
public:
/** Instances need to know the build directory name and the relative
path from the build directory to the target file. */
- cmDepends(cmLocalGenerator* lg = nullptr, std::string targetDir = "");
+ cmDepends(cmLocalUnixMakefileGenerator3* lg = nullptr,
+ std::string targetDir = "");
cmDepends(cmDepends const&) = delete;
cmDepends& operator=(cmDepends const&) = delete;
@@ -38,7 +39,10 @@ public:
scanning dependencies. This is not a full local generator; it
has been setup to do relative path conversions for the current
directory. */
- void SetLocalGenerator(cmLocalGenerator* lg) { this->LocalGenerator = lg; }
+ void SetLocalGenerator(cmLocalUnixMakefileGenerator3* lg)
+ {
+ this->LocalGenerator = lg;
+ }
/** Set the specific language to be scanned. */
void SetLanguage(const std::string& lang) { this->Language = lang; }
@@ -92,7 +96,7 @@ protected:
std::ostream& internalDepends);
// The local generator.
- cmLocalGenerator* LocalGenerator;
+ cmLocalUnixMakefileGenerator3* LocalGenerator;
// Flag for verbose output.
bool Verbose = false;