From 89dac5890d3ca5985e128f6d1710d0b36837eb22 Mon Sep 17 00:00:00 2001 From: "nate.crosswhite@stresearch.com" Date: Thu, 4 Dec 2014 11:33:01 -0500 Subject: [PATCH] Set correct include directory for fftw --- dlib/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlib/CMakeLists.txt b/dlib/CMakeLists.txt index e5b96363f..2a616f917 100644 --- a/dlib/CMakeLists.txt +++ b/dlib/CMakeLists.txt @@ -367,13 +367,12 @@ if (NOT TARGET dlib) # make sure fftw3.h is in the include path find_path(fftw_path fftw3.h) if (fftw AND fftw_path) - get_filename_component(fftw_path2 ${fftw_path} PATH CACHE) - include_directories(${fftw_path2}) + include_directories(${fftw_path}) set(dlib_needed_libraries ${dlib_needed_libraries} ${fftw} ) else() set(DLIB_LINK_WITH_FFTW OFF CACHE STRING ${DLIB_LINK_WITH_SQLITE3_STR} FORCE ) endif() - mark_as_advanced(fftw fftw_path fftw_path2) + mark_as_advanced(fftw fftw_path) endif()