From 5e8e277e6aebefcbe1064f388bc7300172999f2e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jean-No=C3=ABl=20Grad?= <jgrad@icp.uni-stuttgart.de>
Date: Tue, 2 May 2023 10:57:58 +0200
Subject: [PATCH] Fix CMake conditional include of the FFT module

---
 src/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index e5ca7b0c8..93a239376 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -29,7 +29,7 @@ if ( CMAKE_CUDA_COMPILER )
 endif()
 add_subdirectory( domain_decomposition )
 add_subdirectory( executiontree )
-if ( FFTW3_FOUND )
+if ( WALBERLA_BUILD_WITH_FFT AND FFTW3_FOUND )
    add_subdirectory( fft )
 endif()
 add_subdirectory( field )
-- 
GitLab