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.
This commit is contained in:
Robert Maynard 2017-01-11 10:40:38 -05:00
parent 12d5ccd10a
commit 1ce39a1e73

View File

@ -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)