diff options
author | Brad King <brad.king@kitware.com> | 2015-09-22 14:20:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-09-22 14:26:00 (GMT) |
commit | 40c7b4612341e4230516ef32a97449051379790a (patch) | |
tree | 313dc1977f527a6e85e80cc1662e69ab45c66f11 /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | 03bfe71ae055ed9e5dbeb619967ee44e5f555459 (diff) | |
download | CMake-40c7b4612341e4230516ef32a97449051379790a.zip CMake-40c7b4612341e4230516ef32a97449051379790a.tar.gz CMake-40c7b4612341e4230516ef32a97449051379790a.tar.bz2 |
VS: Fix rebuild with regeneration after input CMake code change (#15754)
When using "cmake --build ." or "MSBuild ALL_BUILD.vcxproj" to drive the
build the dependencies in the .sln file are not considered. This means
that ProjectReference elements in .vcxproj files are used to order
targets. We must ensure that the ZERO_CHECK target is listed as the
first dependency of every target so that when it causes regeneration of
the build files then MSBuild has not yet loaded the updated files.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index b91ae11..92403e3 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -2849,7 +2849,7 @@ void cmVisualStudio10TargetGenerator::WriteProjectReferences() = this->GlobalGenerator->GetTargetDirectDepends(this->GeneratorTarget); typedef cmGlobalVisualStudioGenerator::OrderedTargetDependSet OrderedTargetDependSet; - OrderedTargetDependSet depends(unordered, std::string()); + OrderedTargetDependSet depends(unordered, CMAKE_CHECK_BUILD_SYSTEM_TARGET); this->WriteString("<ItemGroup>\n", 1); for( OrderedTargetDependSet::const_iterator i = depends.begin(); i != depends.end(); ++i) |