]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Clean up FindCUDA.cmake
authorMatthias Maier <tamiko@43-1.org>
Wed, 2 Feb 2022 11:01:58 +0000 (05:01 -0600)
committerMatthias Maier <tamiko@43-1.org>
Sat, 5 Feb 2022 20:59:37 +0000 (14:59 -0600)
cmake/modules/FindADOLC.cmake
cmake/modules/FindCUDA.cmake

index bcba6ffd2a7bd8d523425224ce6aa47771291f5c..8301e437cb72a5eb89b00e8bd64278c2518c57bf 100644 (file)
@@ -111,10 +111,10 @@ DEAL_II_PACKAGE_HANDLE(ADOLC
   LIBRARIES
     REQUIRED ADOLC_LIBRARY
     ${_additional_library}
-  INCLUDE_DIRS 
+  INCLUDE_DIRS
     REQUIRED ADOLC_INCLUDE_DIR
     ${_additional_include_dirs}
-  USER_INCLUDE_DIRS 
+  USER_INCLUDE_DIRS
     REQUIRED ADOLC_INCLUDE_DIR
     ${_additional_include_dirs}
   CLEAR ADOLC_INCLUDE_DIR ADOLC_LIBRARY ADOLC_SETTINGS_H
index c8bf61da12edd01c4efc124759a19ac492fcac9c..6058386907b27688b5336eabf9736ed1920fb6d2 100644 (file)
@@ -43,13 +43,10 @@ IF(CUDA_FOUND)
   MESSAGE(STATUS "Configured to use CUDA installation at ${CUDA_TOOLKIT_ROOT_DIR}")
 ENDIF()
 
-SET(_cuda_libraries ${CUDA_LIBRARIES} ${CUDA_cusparse_LIBRARY}
-  ${CUDA_cusolver_LIBRARY})
-SET(_cuda_include_dirs ${CUDA_INCLUDE_DIRS})
 DEAL_II_PACKAGE_HANDLE(CUDA
-  LIBRARIES REQUIRED _cuda_libraries
-  INCLUDE_DIRS REQUIRED  _cuda_include_dirs
-  USER_INCLUDE_DIRS REQUIRED _cuda_include_dirs
+  LIBRARIES REQUIRED CUDA_LIBRARIES CUDA_cusparse_LIBRARY CUDA_cusolver_LIBRARY
+  INCLUDE_DIRS REQUIRED CUDA_INCLUDE_DIRS
+  USER_INCLUDE_DIRS REQUIRED CUDA_INCLUDE_DIRS
   CLEAR
     CUDA_cublas_device_LIBRARY
     CUDA_cublas_LIBRARY

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.