diff options
author | Brad King <brad.king@kitware.com> | 2020-01-29 15:36:33 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-01-29 15:36:40 (GMT) |
commit | 92f04d3790dcc4a5cc3bebb1a75481ac1684224d (patch) | |
tree | 4ca33dbc52d06b6a39ca682d1e680a85fc23d1c9 /Source | |
parent | 38ee7db2ac34902e1fac58c2763ac72a7b2adb75 (diff) | |
parent | 58b06746879aff8edfd832d89f8a832fb3ecbfb8 (diff) | |
download | CMake-92f04d3790dcc4a5cc3bebb1a75481ac1684224d.zip CMake-92f04d3790dcc4a5cc3bebb1a75481ac1684224d.tar.gz CMake-92f04d3790dcc4a5cc3bebb1a75481ac1684224d.tar.bz2 |
Merge topic 'vs-16.4-custom-command-inputs'
58b0674687 VS: Tell VS 16.4 not to verify SYMBOLIC custom command inputs
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4297
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 5ef5597..8264b80 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -1455,6 +1455,7 @@ void cmVisualStudio10TargetGenerator::WriteCustomRule( std::string comment = lg->ConstructComment(ccg); comment = cmVS10EscapeComment(comment); std::string script = lg->ConstructScript(ccg); + bool symbolic = false; // input files for custom command std::stringstream additional_inputs; { @@ -1481,6 +1482,12 @@ void cmVisualStudio10TargetGenerator::WriteCustomRule( ConvertToWindowsSlash(dep); additional_inputs << sep << dep; sep = ";"; + if (!symbolic) { + if (cmSourceFile* sf = this->Makefile->GetSource( + dep, cmSourceFileLocationKind::Known)) { + symbolic = sf->GetPropertyAsBool("SYMBOLIC"); + } + } } } if (this->ProjectType != csproj) { @@ -1489,7 +1496,6 @@ void cmVisualStudio10TargetGenerator::WriteCustomRule( } // output files for custom command std::stringstream outputs; - bool symbolic = false; { const char* sep = ""; for (std::string const& o : ccg.GetOutputs()) { |