diff --git a/CMakeLists.txt b/CMakeLists.txt index 090f992a7..d8322cb13 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,11 +28,11 @@ if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_ add_compile_definitions(USE_CXX17=1) message("USE C++17") set(CMAKE_CXX_STANDARD 17) -elseif(USE_CUDA AND CMAKE_CUDA_COMPILER AND CMAKE_CUDA_COMPILER_VERSION VERSION_LESS 12) - add_compile_definitions(USE_CXX17=1) - message("USE C++17 Because of CUDA Version is less than 12") - set(CMAKE_CXX_STANDARD 17) - set(CMAKE_CUDA_STANDARD 17) +#elseif(USE_CUDA AND CMAKE_CUDA_COMPILER AND CMAKE_CUDA_COMPILER_VERSION VERSION_LESS 12) +# add_compile_definitions(USE_CXX17=1) +# message("USE C++17 Because of CUDA Version is less than 12") +# set(CMAKE_CXX_STANDARD 17) +# set(CMAKE_CUDA_STANDARD 17) else() set(CMAKE_CXX_STANDARD 20) endif()