mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user