Fixes for FindVolk so that includes are found correctly

master
Paul Sutton 9 years ago
parent 8b988e8613
commit 3bfd54be3b

@ -3,12 +3,12 @@ PKG_CHECK_MODULES(PC_VOLK volk QUIET)
FIND_PATH(
VOLK_INCLUDE_DIRS
NAMES volk.h
HINTS $ENV{VOLK_DIR}/include/volk
${CMAKE_INSTALL_PREFIX}/include/volk
NAMES volk/volk.h
HINTS $ENV{VOLK_DIR}/include
${CMAKE_INSTALL_PREFIX}/include
${PC_VOLK_INCLUDE_DIR}
PATHS /usr/local/include/volk
/usr/include/volk
PATHS /usr/local/include
/usr/include
)
FIND_LIBRARY(

@ -38,6 +38,11 @@ ELSE(${DISABLE_VOLK})
FIND_PACKAGE(Volk)
ENDIF(${DISABLE_VOLK})
IF(VOLK_FOUND)
INCLUDE_DIRECTORIES(${VOLK_INCLUDE_DIRS})
LINK_DIRECTORIES(${VOLK_LIBRARY_DIRS})
ENDIF(VOLK_FOUND)
IF(FFTW3F_FOUND)
INCLUDE_DIRECTORIES(${FFTW3F_INCLUDE_DIRS})
LINK_DIRECTORIES(${FFTW3F_LIBRARY_DIRS})

Loading…
Cancel
Save