From def6bcd4e5152c9826ee9ca0ac40264264416400 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 19 Jun 2011 08:57:34 +0000 Subject: cmake add module for finding fftw3. also allow debug blender to build with non debug python --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ed9b03c161..cfddf213ed2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -369,10 +369,10 @@ if(UNIX AND NOT APPLE) endif() if(WITH_FFTW3) - set(FFTW3 /usr) - set(FFTW3_INCLUDE_DIRS ${FFTW3}/include) - set(FFTW3_LIBRARIES fftw3) - set(FFTW3_LIBPATH ${FFTW3}/lib) + find_package(Fftw3) + if(NOT FFTW3_FOUND) + set(WITH_FFTW3 OFF) + endif() endif() if(WITH_SAMPLERATE) -- cgit v1.2.3