message: Core CMake: fix bug, where both FFTW and kissFFT defines could be added.
diff: @@ -259,27 +259,23 @@ endif( )
  if( NOT SPIRIT_USE_CUDA AND NOT FFT_LIB)
  if( SPIRIT_USE_FFTW )
  include(FindFFTW)
  + # Double-check for presence of needed libs
  if( FFTW_FOUND )
  - message( STATUS ">> Using FFTW" )
  - set( FFT_INCLUDE_DIRS ${FFTW_INCLUDES} )
  +
  + set( FFT_LIB ${FFTW_LIB} )
  if( ${SPIRIT_SCALAR_TYPE} STREQUAL "float" )
  if( FFTWF_LIB )
  set( FFT_LIB ${FFTWF_LIB} )
  - add_definitions( -DSPIRIT_USE_FFTW )
  else( )
  message( WARNING "Could find FFTW but not the single precision library 'libfftw3f' -> Using kissFFT fallback" )
  set( FFTW_FOUND OFF )
  endif( )
  - else()
  - set( FFT_LIB ${FFTW_LIB} )
  - add_definitions( -DSPIRIT_USE_FFTW )
  endif( )
  if( SPIRIT_USE_OPENMP)
  if( FFTW_OMP_LIB )
  set( FFT_LIB ${FFT_LIB} ${FFTW_OMP_LIB} )
  - add_definitions( -DSPIRIT_USE_FFTW )
  else( )
  message( WARNING "Could find FFTW but not libfftw3_omp! -> Using kissFFT fallback")
  set( FFTW_FOUND OFF )
  @@ -289,6 +285,13 @@ if( NOT SPIRIT_USE_CUDA AND NOT FFT_LIB)
  else( )
  message( WARNING "Could not find any FFTW libs -> Using kissFFT fallback" )
  endif( )
  +
  + # Finally we know if we can use FFTW
  + if( FFTW_FOUND )
  + message( STATUS ">> Using FFTW" )
  + set( FFT_INCLUDE_DIRS ${FFTW_INCLUDES} )
  + add_definitions( -DSPIRIT_USE_FFTW )
  + endif( )
  endif( )
  if( (NOT SPIRIT_USE_FFTW) OR (NOT FFTW_FOUND) )
  