Explorar o código

CMake: Discover FFTW3 by MODULE only, never CONFIG

This stops a CMake crash on some folks' systems.
Sam Edwards %!s(int64=6) %!d(string=hai) anos
pai
achega
6eb112a13a
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      dtool/Package.cmake

+ 4 - 1
dtool/Package.cmake

@@ -202,7 +202,10 @@ else()
 endif()
 
 # FFTW
-find_package(FFTW3 QUIET)
+# FFTW 3.3.7, when built with autotools, doesn't install
+# FFTW3LibraryDepends.cmake, which will crash us if we use CONFIG mode.  BAH!
+# Force MODULE mode to fix that.
+find_package(FFTW3 MODULE QUIET)
 
 package_option(FFTW
   "This enables support for compression of animations in .bam files.