diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2002-03-26 21:45:52 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2002-03-26 21:45:52 (GMT) |
commit | 437a8c98165f4b19745ba0ffcd455171a58a1e8b (patch) | |
tree | e8cba5a39f3f8ba0606739a96f16af04283d322f /Source/cmMakefile.cxx | |
parent | ccbdc30a8c9c1f763efecf19a0f15f1d1b43e74f (diff) | |
download | CMake-437a8c98165f4b19745ba0ffcd455171a58a1e8b.zip CMake-437a8c98165f4b19745ba0ffcd455171a58a1e8b.tar.gz CMake-437a8c98165f4b19745ba0ffcd455171a58a1e8b.tar.bz2 |
FIX: foreach function-blockers were using expanded args. Add virtual func to specify if function blocker needs them expanded or not.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 6dd3caf..aa2b80b 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1187,9 +1187,19 @@ bool cmMakefile::IsFunctionBlocked(const char *name, for (pos = m_FunctionBlockers.begin(); pos != m_FunctionBlockers.end(); ++pos) { - if ((*pos)->IsFunctionBlocked(name, expandedArguments, *this)) + if ((*pos)->NeedExpandedVariables()) { - return true; + if ((*pos)->IsFunctionBlocked(name, expandedArguments, *this)) + { + return true; + } + } + else + { + if ((*pos)->IsFunctionBlocked(name, args, *this)) + { + return true; + } } } |