summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2016-09-09 21:18:17 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2016-11-14 16:36:44 (GMT)
commit5b20d0abfad057d3d6ae7cbae62f564ddb31dd0f (patch)
treee5e4a7d464985866da5b1681678d2c31929457db /Source
parent489c52ce680df6439f9c1e553cd2925ca8944cb1 (diff)
downloadCMake-5b20d0abfad057d3d6ae7cbae62f564ddb31dd0f.zip
CMake-5b20d0abfad057d3d6ae7cbae62f564ddb31dd0f.tar.gz
CMake-5b20d0abfad057d3d6ae7cbae62f564ddb31dd0f.tar.bz2
CUDA: C++ compile features now enable cuda c++11 support.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakefile.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 90182f9..fecc983 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -4413,10 +4413,13 @@ bool cmMakefile::AddRequiredTargetCxxFeature(cmTarget* target,
if (setCxx14) {
target->SetProperty("CXX_STANDARD", "14");
+ target->SetProperty("CUDA_STANDARD", "14");
} else if (setCxx11) {
target->SetProperty("CXX_STANDARD", "11");
+ target->SetProperty("CUDA_STANDARD", "11");
} else if (setCxx98) {
target->SetProperty("CXX_STANDARD", "98");
+ target->SetProperty("CUDA_STANDARD", "98");
}
return true;
}