mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Set correct include directory for fftw
This commit is contained in:
parent
1f8686950c
commit
89dac5890d
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user