From 1ce39a1e73d6a38ec53679113ba643ac6a51781c Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Wed, 11 Jan 2017 10:40:38 -0500 Subject: 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. --- Tests/Cuda/ConsumeCompileFeatures/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v0.12