If pkgconfig fails to find FFTW, it emits a CMake status messge,
but we do our own detection immediately afterwards. Seeing
a failure followed by a success can be confusing to users, so we
let them know we're not worried by pkg-config failing.
Change-Id: If270dd5d6fe10bc3a58a6fa56c9028cf61859d74
find_package(PkgConfig)
if(NOT __pkg_config_checked_PC_${FFTW} OR NOT ${FFTW}_LIBRARY)
pkg_check_modules(PC_${FFTW} "${${FFTW}_PKG}")
+ if(NOT PC_${FFTW}_FOUND)
+ message(STATUS "pkg-config could not detect ${${FFTW}_PKG}, trying generic detection")
+ endif()
endif(NOT __pkg_config_checked_PC_${FFTW} OR NOT ${FFTW}_LIBRARY)
find_path(${FFTW}_INCLUDE_DIR "fftw3.h" HINTS ${PC_${FFTW}_INCLUDE_DIRS})