diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-06 00:04:30 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-06 21:46:09 +0200 |
commit | f716460ed82134bd1ca09f49bfa507cb2645d96c (patch) | |
tree | 3bdd00b1328419b8a52ad12fd2ad2671144bc647 /Source/cmMakefile.cxx | |
parent | 256bf8876a2e460afc37dbe17eb34482944be20b (diff) | |
download | cmake-f716460ed82134bd1ca09f49bfa507cb2645d96c.tar.gz |
cmMakefile: Move invokation to initialize snapshot.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 077470da92..e522320500 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1472,8 +1472,6 @@ void cmMakefile::AddLinkLibrary(const std::string& lib) void cmMakefile::InitializeFromParent(cmMakefile* parent) { - this->StateSnapshot.InitializeFromParent(); - this->AddDefinition("CMAKE_CURRENT_SOURCE_DIR", this->GetCurrentSourceDirectory()); this->AddDefinition("CMAKE_CURRENT_BINARY_DIR", @@ -1755,6 +1753,9 @@ void cmMakefile::AddSubDirectory(const std::string& srcPath, // set the subdirs start dirs subMf->SetCurrentSourceDirectory(srcPath); subMf->SetCurrentBinaryDirectory(binPath); + + subMf->StateSnapshot.InitializeFromParent(); + if(excludeFromAll) { subMf->SetProperty("EXCLUDE_FROM_ALL", "TRUE"); |