diff options
author | Brad King <brad.king@kitware.com> | 2017-06-27 13:18:26 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-06-27 13:18:34 (GMT) |
commit | dc11a20d7b308f15cc0080f6c14ea06d96dbc2c7 (patch) | |
tree | 5199065e13539e3c37a5632aab0d95739d5647c7 /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | b8858bd4046958b94b11e794e2a9aab9124414a4 (diff) | |
parent | bbc1f3642cb86ce59908ee33eeb409d7921f73f8 (diff) | |
download | CMake-dc11a20d7b308f15cc0080f6c14ea06d96dbc2c7.zip CMake-dc11a20d7b308f15cc0080f6c14ea06d96dbc2c7.tar.gz CMake-dc11a20d7b308f15cc0080f6c14ea06d96dbc2c7.tar.bz2 |
Merge topic 'vs-cuda-fix-flags'
bbc1f364 VS: Fix support for nvcc flags not in our flag table
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1007
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 6d796be..4bd0cd8 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -2550,7 +2550,7 @@ bool cmVisualStudio10TargetGenerator::ComputeCudaOptions( cudaOptions.RemoveFlag("AdditionalCompilerOptions"); if (!aco.empty()) { aco = this->LocalGenerator->EscapeForShell(aco, false); - cudaOptions.AppendFlag("AdditionalOptions", "-Xcompiler=" + aco); + cudaOptions.AppendFlagString("AdditionalOptions", "-Xcompiler=" + aco); } } @@ -2639,8 +2639,8 @@ bool cmVisualStudio10TargetGenerator::ComputeCudaLinkOptions( // Suppress deprecation warnings for default GPU targets during device link. if (cmSystemTools::VersionCompareGreaterEq( this->GlobalGenerator->GetPlatformToolsetCudaString(), "8.0")) { - cudaLinkOptions.AppendFlag("AdditionalOptions", - "-Wno-deprecated-gpu-targets"); + cudaLinkOptions.AppendFlagString("AdditionalOptions", + "-Wno-deprecated-gpu-targets"); } this->CudaLinkOptions[configName] = pOptions.release(); |