CMake: Fix FindFFTW pkg-config bug

Remove the REQUIRED flag from pkg_check_modules for when pkg-config is
available but cannot locate FFTW.
This commit is contained in:
Lukas W
2018-07-29 14:03:36 +02:00
parent 1c5e374192
commit 792cf7a262

View File

@@ -11,8 +11,8 @@ if(NOT FFTW_FIND_COMPONENTS)
endif()
if(PKG_CONFIG_FOUND)
pkg_check_modules(FFTW_PKG fftw>=3.0.0)
pkg_check_modules(FFTW3_PKG fftw3>=3.0.0)
pkg_check_modules(FFTW_PKG QUIET fftw>=3.0.0)
pkg_check_modules(FFTW3_PKG QUIET fftw3>=3.0.0)
endif()
find_path(FFTW_INCLUDE_DIR
@@ -25,7 +25,7 @@ set(check_list)
foreach(comp ${FFTW_FIND_COMPONENTS})
string(TOUPPER ${comp} COMP)
if(PKG_CONFIG_FOUND)
pkg_check_modules(${COMP}_PKG REQUIRED ${comp}>=3.0.0)
pkg_check_modules(${COMP}_PKG QUIET ${comp}>=3.0.0)
endif()
find_library(${COMP}_LIBRARY