File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ if(USE_CUDA_TOOLKIT)
2626
2727 # cub has been included in CUDA Toolkit 11, we do not need to include it any
2828 # more see https://github.com/NVIDIA/cub
29- if (${ CMAKE_CUDA_COMPILER_VERSION} VERSION_LESS "11" )
29+ if (CMAKE_CUDA_COMPILER_VERSION VERSION_LESS "11" )
3030 include (FetchContent )
3131 FetchContent_Declare (
3232 cub_download
@@ -39,12 +39,12 @@ if(USE_CUDA_TOOLKIT)
3939 endif ()
4040 include_directories (${CUB_SOURCE_ROOT} )
4141 endif ()
42- if (${ CMAKE_CUDA_COMPILER_VERSION} VERSION_LESS "9" )
42+ if (CMAKE_CUDA_COMPILER_VERSION VERSION_LESS "9" )
4343 message (FATAL_ERROR "CUDA version must be >= 9.0" )
4444 endif ()
4545
4646 # CUDA 13.0+ requires C++17
47- if (${ CMAKE_CUDA_COMPILER_VERSION} VERSION_GREATER_EQUAL "13.0" )
47+ if (CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL "13.0" )
4848 set (CMAKE_CUDA_STANDARD 17)
4949 message (
5050 STATUS
You can’t perform that action at this time.
0 commit comments