Revert "CMake 3.17 compatibility"

This reverts commit 49366d0455.
This commit is contained in:
Bill Somerville 2020-08-22 11:57:44 +01:00
parent 49366d0455
commit f00f9bbeb9
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -34,12 +34,6 @@
# #
# $Id: FindFFTW3.cmake 15918 2010-06-25 11:12:42Z loose $ # $Id: FindFFTW3.cmake 15918 2010-06-25 11:12:42Z loose $
# Compatibily with old style MinGW packages with no .dll.a files
# needed since CMake v3.17 because of fix for #20019
if (MINGW)
set (CMAKE_FIND_LIBRARY_SUFFIXES ".dll" ".dll.a" ".a" ".lib")
endif ()
# Use double precision by default. # Use double precision by default.
if (FFTW3_FIND_COMPONENTS MATCHES "^$") if (FFTW3_FIND_COMPONENTS MATCHES "^$")
set (_components double) set (_components double)
@ -81,7 +75,7 @@ set (_check_list)
foreach (_lib ${_libraries}) foreach (_lib ${_libraries})
string (TOUPPER ${_lib} _LIB) string (TOUPPER ${_lib} _LIB)
find_library (${_LIB}_LIBRARY NAMES ${_lib} ${_lib}-3 find_library (${_LIB}_LIBRARY NAMES ${_lib} ${_lib}-3
PATH_SUFFIXES lib) HINTS ${FFTW3_ROOT_DIR} PATH_SUFFIXES lib)
mark_as_advanced (${_LIB}_LIBRARY) mark_as_advanced (${_LIB}_LIBRARY)
list (APPEND FFTW3_LIBRARIES ${${_LIB}_LIBRARY}) list (APPEND FFTW3_LIBRARIES ${${_LIB}_LIBRARY})
list (APPEND _check_list ${_LIB}_LIBRARY) list (APPEND _check_list ${_LIB}_LIBRARY)