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
|
# make sure fftw3.h is in the include path
|
||||||
find_path(fftw_path fftw3.h)
|
find_path(fftw_path fftw3.h)
|
||||||
if (fftw AND fftw_path)
|
if (fftw AND fftw_path)
|
||||||
get_filename_component(fftw_path2 ${fftw_path} PATH CACHE)
|
include_directories(${fftw_path})
|
||||||
include_directories(${fftw_path2})
|
|
||||||
set(dlib_needed_libraries ${dlib_needed_libraries} ${fftw} )
|
set(dlib_needed_libraries ${dlib_needed_libraries} ${fftw} )
|
||||||
else()
|
else()
|
||||||
set(DLIB_LINK_WITH_FFTW OFF CACHE STRING ${DLIB_LINK_WITH_SQLITE3_STR} FORCE )
|
set(DLIB_LINK_WITH_FFTW OFF CACHE STRING ${DLIB_LINK_WITH_SQLITE3_STR} FORCE )
|
||||||
endif()
|
endif()
|
||||||
mark_as_advanced(fftw fftw_path fftw_path2)
|
mark_as_advanced(fftw fftw_path)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user