diff options
author | Brad King <brad.king@kitware.com> | 2023-06-01 13:45:49 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-06-01 13:45:56 (GMT) |
commit | aa3675d28186124a3175b89ed9bfd426c5d6b530 (patch) | |
tree | 2975e1935eb275338e0c475e5ff3ee6bfb1bfba2 /Source/cmGlobalVisualStudio8Generator.cxx | |
parent | 859de07aa38af805b74801e0f124e06233263e78 (diff) | |
parent | da27ff1e963b11dd91060fddb9e47a3135b4ac6c (diff) | |
download | CMake-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.cxx | 3 |
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 |