File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,13 @@ if(COVERAGECONTROL_WITH_CUDA)
3030 include (CheckLanguage )
3131 check_language (CUDA )
3232 if (NOT CMAKE_CUDA_COMPILER)
33- message (WARNING "No CUDA compiler found, disabling CUDA support" )
34- set (COVERAGECONTROL_WITH_CUDA OFF )
33+ find_package (CUDAToolkit )
34+ if (CUDAToolkit_FOUND)
35+ enable_language (CUDA )
36+ else ()
37+ message (WARNING "No CUDA compiler found, disabling CUDA support" )
38+ set (COVERAGECONTROL_WITH_CUDA OFF )
39+ endif ()
3540 else ()
3641 enable_language (CUDA )
3742 endif ()
@@ -92,11 +97,11 @@ find_package(Eigen3 3.4 QUIET)
9297if (NOT Eigen3_FOUND OR Eigen3_VERSION VERSION_LESS 3.4)
9398 message (STATUS "Eigen3 3.4 not found, fetching it" )
9499 include (FetchContent )
95- FetchContent_Declare (Eigen3
100+ FetchContent_Declare (eigen3
96101 URL https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz
97102 )
98103 set (FETCHCONTENT_QUIET FALSE ) # show progress dialog
99- FetchContent_Populate (Eigen3 ) # finish fetching and unpacking before continuing
104+ FetchContent_Populate (eigen3 ) # finish fetching and unpacking before continuing
100105 add_subdirectory (${FETCHCONTENT_BASE_DIR} /eigen3-src ${CMAKE_CURRENT_BINARY_DIR} /eigen3 )
101106endif ()
102107
@@ -116,6 +121,7 @@ if(NOT CGAL_FOUND OR CGAL_VERSION VERSION_LESS 5.6.1)
116121 set (CGAL_DIR "${FETCHCONTENT_BASE_DIR} /cgal-src" )
117122 find_package (CGAL 5.6 REQUIRED )
118123endif ()
124+
119125###########################
120126
121127configure_file (
You can’t perform that action at this time.
0 commit comments