mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-12 23:43:59 +03:00
cmMakefile: Don't expect the VarStack iterator to support size().
This commit is contained in:
1 parent
390bc3244f
commit
5b7ff35c4d
1 file changed
+1
-2
@@ -105,9 +105,8 @@ public:
|
||||
|
||||
bool RaiseScope(std::string const& var, const char* varDef, cmMakefile* mf)
|
||||
{
|
||||
assert(this->VarStack.size() > 0);
|
||||
|
||||
std::list<cmDefinitions>::reverse_iterator it = this->VarStack.rbegin();
|
||||
assert(it != this->VarStack.rend());
|
||||
++it;
|
||||
if(it == this->VarStack.rend())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user