summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2017-01-11 15:40:38 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2017-01-11 15:40:38 (GMT)
commit1ce39a1e73d6a38ec53679113ba643ac6a51781c (patch)
tree13d6904589a2f1cf5cb529c7050d1a2a0ca7695f /Tests
parent12d5ccd10a451301bf3cbdefe8fde744bf6c9467 (diff)
downloadCMake-1ce39a1e73d6a38ec53679113ba643ac6a51781c.zip
CMake-1ce39a1e73d6a38ec53679113ba643ac6a51781c.tar.gz
CMake-1ce39a1e73d6a38ec53679113ba643ac6a51781c.tar.bz2
CUDA: ConsumeCompileFeatures use cxx_nullptr for wider compiler support
We need to use a C++11 feature that is supported by the widest range of compilers, so we chose nullptr instead of constexpr.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Cuda/ConsumeCompileFeatures/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/Cuda/ConsumeCompileFeatures/CMakeLists.txt b/Tests/Cuda/ConsumeCompileFeatures/CMakeLists.txt
index 8361b9e..9fda2d0 100644
--- a/Tests/Cuda/ConsumeCompileFeatures/CMakeLists.txt
+++ b/Tests/Cuda/ConsumeCompileFeatures/CMakeLists.txt
@@ -11,7 +11,7 @@ project (CudaConsumeCompileFeatures CXX CUDA)
add_library(CudaConsumeLib STATIC static.cpp static.cu)
-target_compile_features(CudaConsumeLib PUBLIC cxx_constexpr)
+target_compile_features(CudaConsumeLib PUBLIC cxx_nullptr)
add_executable(CudaConsumeCompileFeatures main.cu)
target_link_libraries(CudaConsumeCompileFeatures PRIVATE CudaConsumeLib)