Skip to content

Commit 98fdd06

Browse files
committed
fix check for version
1 parent 25200af commit 98fdd06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ message(STATUS "Build pdlp with GPU: ${CUPDLP_GPU}")
121121
option(CUPDLP_FIND_CUDA "Build pdlp with GPU" OFF)
122122
message(STATUS "Use FindCUDAConf: ${CUPDLP_FIND_CUDA}")
123123

124-
if(CUPDLP_GPU CMAKE_VERSION VERSION_LESS "3.25.0")
124+
if(CUPDLP_GPU AND CMAKE_VERSION VERSION_LESS "3.25.0")
125125
message("CUPDLP FindCUDAConf requires CMake version minumum 3.24. Please use a higher version of CMake.")
126126
endif()
127127

0 commit comments

Comments
 (0)