Skip to content

Commit

Permalink
Disable fft_small for MSVC
Browse files Browse the repository at this point in the history
And print fft_small module check for CMake
  • Loading branch information
albinahlback committed Nov 18, 2023
1 parent 3fba2c2 commit ea3585f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit ea3585f

Please sign in to comment.