Fixed cmake file so that the "use fftw" option actually causes the

build to use fftw.
This commit is contained in:
Davis King 2014-02-22 17:31:53 -05:00
parent 28a0d860aa
commit 867e52d3bd
1 changed files with 6 additions and 0 deletions

View File

@ -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)