Skip to content

Commit 25200af

Browse files
committed
added check for cuda minimum cmake
1 parent 754021c commit 25200af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ 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")
125+
message("CUPDLP FindCUDAConf requires CMake version minumum 3.24. Please use a higher version of CMake.")
126+
endif()
127+
124128
# if (NOT LINUX)
125129
# set (CUPDLP_GPU OFF)
126130
# message(STATUS "CUPLDP with Nvidia is only supported on Linux at the moment. Using CPU version.")

0 commit comments

Comments
 (0)