Skip to content

Commit df131fb

Browse files
committed
Remove unneeded find CUDA
1 parent e614cf2 commit df131fb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,8 @@ elseif ((CMAKE_Fortran_COMPILER_ID STREQUAL "NVHPC") OR (CMAKE_Fortran_COMPILER_
196196
endif()
197197

198198
if (DEFINED ENV{MFC_CUDA_CC})
199-
# Need to find CUDA to get the version to specify for login node builds
200-
find_package(CUDA)
201199
string(REGEX MATCHALL "[0-9]+" MFC_CUDA_CC $ENV{MFC_CUDA_CC})
202-
message(STATUS "Found $MFC_CUDA_CC specified. GPU code will be generated for compute capability ${MFC_CUDA_CC} and CUDA version ${CUDA_VERSION}.")
200+
message(STATUS "Found $MFC_CUDA_CC specified. GPU code will be generated for compute capability(ies) ${MFC_CUDA_CC}.")
203201
endif()
204202
endif()
205203

0 commit comments

Comments
 (0)