Commit 4f762def authored by Christoph Junghans's avatar Christoph Junghans
Browse files

cmake: drop FFTW2 support

parent 843f89fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ endif()

if(ENABLE_KSPACE)
  set(FFT "KISSFFT" CACHE STRING "FFT library for KSPACE package")
  set_property(CACHE FFT PROPERTY STRINGS KISSFFT FFTW3 MKL FFTW2)
  set_property(CACHE FFT PROPERTY STRINGS KISSFFT FFTW3 MKL)
  if(NOT FFT STREQUAL "KISSFFT")
    find_package(${FFT} REQUIRED)
    add_definitions(-DFFT_${FFT})

cmake/Modules/FindFFTW2.cmake

deleted100644 → 0
+0 −22
Original line number Diff line number Diff line
# - Find fftw2
# Find the native FFTW2 headers and libraries.
#
#  FFTW2_INCLUDE_DIRS - where to find fftw2.h, etc.
#  FFTW2_LIBRARIES    - List of libraries when using fftw2.
#  FFTW2_FOUND        - True if fftw2 found.
#

find_path(FFTW2_INCLUDE_DIR fftw.h)

find_library(FFTW2_LIBRARY NAMES fftw)

set(FFTW2_LIBRARIES ${FFTW2_LIBRARY})
set(FFTW2_INCLUDE_DIRS ${FFTW2_INCLUDE_DIR})

include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set FFTW2_FOUND to TRUE
# if all listed variables are TRUE

find_package_handle_standard_args(FFTW2 DEFAULT_MSG FFTW2_LIBRARY FFTW2_INCLUDE_DIR)

mark_as_advanced(FFTW2_INCLUDE_DIR FFTW2_LIBRARY )