Skip to content

Commit 013e676

Browse files
committed
do not use ${xxx} inside if
1 parent 6d0f04b commit 013e676

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

source/lib/src/gpu/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)