From 867e52d3bd97656cdb5240d1b33739fd0171b444 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 22 Feb 2014 17:31:53 -0500 Subject: [PATCH] Fixed cmake file so that the "use fftw" option actually causes the build to use fftw. --- dlib/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlib/CMakeLists.txt b/dlib/CMakeLists.txt index f85c28d46..cfcffdc68 100644 --- a/dlib/CMakeLists.txt +++ b/dlib/CMakeLists.txt @@ -379,6 +379,12 @@ if (NOT TARGET dlib) remove_global_define(DLIB_JPEG_SUPPORT) endif() + if (DLIB_LINK_WITH_FFTW AND NOT DLIB_ISO_CPP_ONLY) + add_global_define(DLIB_USE_FFTW) + else() + remove_global_define(DLIB_USE_FFTW) + endif() + if (DLIB_USE_BLAS AND blas_found) add_global_define(DLIB_USE_BLAS)