summaryrefslogtreecommitdiffstats
path: root/Source/cmState.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2018-09-17 14:42:37 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2018-09-17 14:42:37 (GMT)
commit53ad52d66d2056a4bf797d22ce1d3ee5395679a6 (patch)
tree8ed0d38de3d288001970b03871bee886169f346b /Source/cmState.cxx
parent2af106a43a259533b0cec262ca368f577c3925b0 (diff)
downloadCMake-53ad52d66d2056a4bf797d22ce1d3ee5395679a6.zip
CMake-53ad52d66d2056a4bf797d22ce1d3ee5395679a6.tar.gz
CMake-53ad52d66d2056a4bf797d22ce1d3ee5395679a6.tar.bz2
LINK_OPTIONS: Add missing initialization actions
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r--Source/cmState.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx
index c8b8653..c6667f6 100644
--- a/Source/cmState.cxx
+++ b/Source/cmState.cxx
@@ -659,6 +659,7 @@ cmStateSnapshot cmState::CreateBaseSnapshot()
pos->IncludeDirectoryPosition = 0;
pos->CompileDefinitionsPosition = 0;
pos->CompileOptionsPosition = 0;
+ pos->LinkOptionsPosition = 0;
pos->BuildSystemDirectory->DirectoryEnd = pos;
pos->Policies = this->PolicyStack.Root();
pos->PolicyRoot = this->PolicyStack.Root();
@@ -810,6 +811,8 @@ cmStateSnapshot cmState::Pop(cmStateSnapshot const& originSnapshot)
prevPos->BuildSystemDirectory->CompileDefinitions.size();
prevPos->CompileOptionsPosition =
prevPos->BuildSystemDirectory->CompileOptions.size();
+ prevPos->LinkOptionsPosition =
+ prevPos->BuildSystemDirectory->LinkOptions.size();
prevPos->BuildSystemDirectory->DirectoryEnd = prevPos;
if (!pos->Keep && this->SnapshotData.IsLast(pos)) {