diff options
author | Brad King <brad.king@kitware.com> | 2018-08-27 17:51:56 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-08-27 17:52:02 (GMT) |
commit | 9e3aee952dacc52c94e34a8d76b60c1e797f0533 (patch) | |
tree | 18cc707e85c98c28fc8c57fd8911de503f62ab8e | |
parent | 363fffc736f723fc4a7bb3c8cd69e462eb9f937e (diff) | |
parent | 1bd768174a848b9bc12eeff73786407631c533cf (diff) | |
download | CMake-9e3aee952dacc52c94e34a8d76b60c1e797f0533.zip CMake-9e3aee952dacc52c94e34a8d76b60c1e797f0533.tar.gz CMake-9e3aee952dacc52c94e34a8d76b60c1e797f0533.tar.bz2 |
Merge topic 'vs2017-no-default-FC'
1bd768174a VS: Avoid VS 2017 toolset default use of /FC flag
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Alberto Garcia Illera <agarciaillera@gmail.com>
Acked-by: Martin Hořeňovský <martin.horenovsky@gmail.com>
Merge-request: !2306
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 56d7243..aa43457 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -2490,6 +2490,16 @@ bool cmVisualStudio10TargetGenerator::ComputeClOptions( if (this->MSTools) { if (this->ProjectType == vcxproj) { clOptions.FixExceptionHandlingDefault(); + if (this->GlobalGenerator->GetVersion() >= + cmGlobalVisualStudioGenerator::VS15) { + // Toolsets that come with VS 2017 may now enable UseFullPaths + // by default and there is no negative /FC option that projects + // can use to switch it back. Older toolsets disable this by + // default anyway so this will not hurt them. If the project + // is using an explicit /FC option then parsing flags will + // replace this setting with "true" below. + clOptions.AddFlag("UseFullPaths", "false"); + } clOptions.AddFlag("PrecompiledHeader", "NotUsing"); std::string asmLocation = configName + "/"; clOptions.AddFlag("AssemblerListingLocation", asmLocation); |