mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 12:40:06 +00: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:
parent
12d5ccd10a
commit
1ce39a1e73
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user