From f12ea8bd324a93d7c31dafecdd30e0aef24525e3 Mon Sep 17 00:00:00 2001
From: Bill Hoffman <bill.hoffman@kitware.com>
Date: Thu, 13 Mar 2008 15:34:17 -0400
Subject: ENH: move the clear to before things are added to the maps

---
 Source/cmake.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 53dac02..f3c2faf 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -221,6 +221,8 @@ void cmake::InitializeProperties()
 {
   this->Properties.clear();
   this->Properties.SetCMakeInstance(this);
+  this->AccessedProperties.clear();
+  this->PropertyDefinitions.clear();
 
   // initialize properties
   cmSourceFile::DefineProperties(this);
@@ -228,8 +230,6 @@ void cmake::InitializeProperties()
   cmMakefile::DefineProperties(this);
   cmTest::DefineProperties(this);
   cmake::DefineProperties(this);
-  this->AccessedProperties.clear();
-  this->PropertyDefinitions.clear();
 }
 
 void cmake::CleanupCommandsAndMacros()
-- 
cgit v0.12