summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsC.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-06-02 12:02:14 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-06-02 12:02:24 (GMT)
commita432b1075c8808c6e4c925d3f4d4ce94c5477bab (patch)
treecbf85da9bdbfdd82e2e0fa6d210478840f82b2da /Source/cmDependsC.cxx
parentec7b5f21eef8bc0d6da729aa0f61ddccc7a06f3b (diff)
parent7ed8c9ebe33ccafc41ec9e096bf2884d617a0ebf (diff)
downloadCMake-a432b1075c8808c6e4c925d3f4d4ce94c5477bab.zip
CMake-a432b1075c8808c6e4c925d3f4d4ce94c5477bab.tar.gz
CMake-a432b1075c8808c6e4c925d3f4d4ce94c5477bab.tar.bz2
Merge topic 'getdef-expand'
7ed8c9ebe3 cmMakefile: add GetDefExpandList() that splits value into std::vector Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4819
Diffstat (limited to 'Source/cmDependsC.cxx')
-rw-r--r--Source/cmDependsC.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmDependsC.cxx b/Source/cmDependsC.cxx
index 4499a66..e05c964 100644
--- a/Source/cmDependsC.cxx
+++ b/Source/cmDependsC.cxx
@@ -384,9 +384,7 @@ void cmDependsC::SetupTransforms()
// Get the transformation rules.
std::vector<std::string> transformRules;
cmMakefile* mf = this->LocalGenerator->GetMakefile();
- if (const char* xform = mf->GetDefinition("CMAKE_INCLUDE_TRANSFORMS")) {
- cmExpandList(xform, transformRules, true);
- }
+ mf->GetDefExpandList("CMAKE_INCLUDE_TRANSFORMS", transformRules, true);
for (std::string const& tr : transformRules) {
this->ParseTransform(tr);
}