summaryrefslogtreecommitdiffstats
path: root/Source/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-07-22 18:22:45 (GMT)
committerBrad King <brad.king@kitware.com>2009-07-22 18:22:45 (GMT)
commitfd10589995fe942ceecbc0e1d5f869a534abdbba (patch)
treeccf5fcb2f87b072108fb9f859d311e345720007a /Source/CMakeLists.txt
parent267085f338c917f72950ca55f5cc09760cb4a894 (diff)
downloadCMake-fd10589995fe942ceecbc0e1d5f869a534abdbba.zip
CMake-fd10589995fe942ceecbc0e1d5f869a534abdbba.tar.gz
CMake-fd10589995fe942ceecbc0e1d5f869a534abdbba.tar.bz2
ENH: Improve dynamic variable scope implementation
Previously each new variable scope (subdirectory or function call) in the CMake language created a complete copy of the key->value definition map. This avoids the copy using transitive lookups up the scope stack. Results of queries answered by parents are stored locally to maintain locality of reference. The class cmDefinitions replaces cmMakefile::DefinitionsMap, and is aware of its enclosing scope. Each scope stores only the definitions set (or unset!) inside it relative to the enclosing scope.
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r--Source/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 090f840..f17c0d6 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -116,6 +116,8 @@ SET(SRCS
cmComputeTargetDepends.cxx
cmCustomCommand.cxx
cmCustomCommand.h
+ cmDefinitions.cxx
+ cmDefinitions.h
cmDepends.cxx
cmDepends.h
cmDependsC.cxx