From ea3585f2ce795cae5e219161d5f27f82f57cdc06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albin=20Ahlb=C3=A4ck?= Date: Sat, 18 Nov 2023 13:05:21 +0100 Subject: [PATCH] Disable fft_small for MSVC And print fft_small module check for CMake --- CMakeLists.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e8bf655c8b..a18d4c8c37 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,6 +94,7 @@ endif() # Check if fft_small module is available +message(STATUS "Checking whether fft_small module is available") set(CMAKE_REQUIRED_INCLUDES ${GMP_INCLUDE_DIRS}) if(HAS_FLAG_GCC_MARCH_NATIVE) set(CMAKE_REQUIRED_FLAGS "-march=native") @@ -140,9 +141,18 @@ unset(CMAKE_REQUIRED_INCLUDES) unset(CMAKE_REQUIRED_FLAGS) if(FLINT_FFT_SMALL_ARM OR FLINT_FFT_SMALL_X86) - set(FFT_SMALL fft_small) - set(FLINT_HAVE_FFT_SMALL ON) + if(MSVC) + # fft_small module is currently not working for MSVC + message(WARNING "fft_small module is not available MSVC") + message(STATUS "Checking whether fft_small module is available - no") + set(FFT_SMALL) + else() + message(STATUS "Checking whether fft_small module is available - yes") + set(FFT_SMALL fft_small) + set(FLINT_HAVE_FFT_SMALL ON) + endif() else() + message(STATUS "Checking whether fft_small module is available - no") set(FFT_SMALL) endif()