summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio8Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-06-01 13:45:49 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-06-01 13:45:56 (GMT)
commitaa3675d28186124a3175b89ed9bfd426c5d6b530 (patch)
tree2975e1935eb275338e0c475e5ff3ee6bfb1bfba2 /Source/cmGlobalVisualStudio8Generator.cxx
parent859de07aa38af805b74801e0f124e06233263e78 (diff)
parentda27ff1e963b11dd91060fddb9e47a3135b4ac6c (diff)
downloadCMake-aa3675d28186124a3175b89ed9bfd426c5d6b530.zip
CMake-aa3675d28186124a3175b89ed9bfd426c5d6b530.tar.gz
CMake-aa3675d28186124a3175b89ed9bfd426c5d6b530.tar.bz2
Merge topic 'cmake-compile-no-warning-as-error'
da27ff1e96 Preserve --compile-no-warning-as-error in automatic CMake re-runs e0b48284a1 Xcode: Internally uses -S instead of -H to specify source directory Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8522
Diffstat (limited to 'Source/cmGlobalVisualStudio8Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio8Generator.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio8Generator.cxx b/Source/cmGlobalVisualStudio8Generator.cxx
index 819bb09..aefb67a 100644
--- a/Source/cmGlobalVisualStudio8Generator.cxx
+++ b/Source/cmGlobalVisualStudio8Generator.cxx
@@ -354,6 +354,9 @@ bool cmGlobalVisualStudio8Generator::AddCheckTarget()
cmCustomCommandLines commandLines = cmMakeSingleCommandLine(
{ cmSystemTools::GetCMakeCommand(), argS, argB, "--check-stamp-list",
stampList, "--vs-solution-file", sln });
+ if (cm->GetIgnoreWarningAsError()) {
+ commandLines[0].emplace_back("--compile-no-warning-as-error");
+ }
// Add the rule. Note that we cannot use the CMakeLists.txt
// file as the main dependency because it would get