CMake v3.17 compatability

This commit is contained in:
Bill Somerville 2020-08-22 11:58:39 +01:00
parent f00f9bbeb9
commit d522239492
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F
1 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,12 @@
#
# $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.
if (FFTW3_FIND_COMPONENTS MATCHES "^$")
set (_components double)