diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-03-23 14:41:12 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-03-23 20:45:09 (GMT) |
commit | 856a271fb7023e5ee1a251a9ebe55c91072d9cf6 (patch) | |
tree | 4eee3ceef1dbc6729581dc002742b4e59248afb6 /Source/cmTarget.cxx | |
parent | 46075091d55334d04a2f11207cfedee10149b1d3 (diff) | |
download | CMake-856a271fb7023e5ee1a251a9ebe55c91072d9cf6.zip CMake-856a271fb7023e5ee1a251a9ebe55c91072d9cf6.tar.gz CMake-856a271fb7023e5ee1a251a9ebe55c91072d9cf6.tar.bz2 |
cmTarget: Move member `SystemIncludeDirectories` to impl
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index ae29a05..1638c64 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -168,6 +168,7 @@ public: cmStateEnums::TargetType TargetType; cmMakefile* Makefile; cmPropertyMap Properties; + std::set<std::string> SystemIncludeDirectories; std::vector<std::string> IncludeDirectoriesEntries; std::vector<cmListFileBacktrace> IncludeDirectoriesBacktraces; std::vector<std::string> CompileOptionsEntries; @@ -373,7 +374,7 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type, { auto const& sysInc = impl->Makefile->GetSystemIncludeDirectories(); - this->SystemIncludeDirectories.insert(sysInc.begin(), sysInc.end()); + impl->SystemIncludeDirectories.insert(sysInc.begin(), sysInc.end()); } CApp(impl->CompileOptionsEntries, @@ -817,7 +818,12 @@ void cmTarget::AddLinkLibrary(cmMakefile& mf, std::string const& lib, void cmTarget::AddSystemIncludeDirectories(const std::set<std::string>& incs) { - this->SystemIncludeDirectories.insert(incs.begin(), incs.end()); + impl->SystemIncludeDirectories.insert(incs.begin(), incs.end()); +} + +std::set<std::string> const& cmTarget::GetSystemIncludeDirectories() const +{ + return impl->SystemIncludeDirectories; } cmStringRange cmTarget::GetIncludeDirectoriesEntries() const |