Browse Source

CMake: Discover FFTW3 by MODULE only, never CONFIG

This stops a CMake crash on some folks' systems.
Sam Edwards 6 years ago
parent
commit
6eb112a13a
1 changed files with 4 additions and 1 deletions
  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.