From 2d6873a09057ee8ec09ee90ecd0116b31db08b75 Mon Sep 17 00:00:00 2001 From: zy69guqi <richard.angersbach@fau.de> Date: Wed, 5 Apr 2023 17:03:13 +0200 Subject: [PATCH] Revert "Ignore WALBERLA_BUILD_WITH_CUDA flag when building CUDA module with help of GPU wrappers" This reverts commit bbb9a83f50c0f530ddeeee65c35382fa05700040. --- src/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f5391b70c..e5ca7b0c8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -24,7 +24,9 @@ add_subdirectory( blockforest ) add_subdirectory( boundary ) add_subdirectory( communication ) add_subdirectory( core ) -add_subdirectory( cuda ) +if ( CMAKE_CUDA_COMPILER ) + add_subdirectory( cuda ) +endif() add_subdirectory( domain_decomposition ) add_subdirectory( executiontree ) if ( FFTW3_FOUND ) -- GitLab