message("\tFound FFTW::${fftw_comp} with parameters '-I${${COMPONENT}_INCLUDE_DIR} -L${${COMPONENT}_LIBRARY_DIR} -l${${COMPONENT}_LIBRARY}'.")
endif()
else()
set(${COMPONENT}_FOUND FALSE)
if(FFTW_FIND_REQUIRED_${fftw_comp})
if(NOT FFTW_FIND_QUIETLY)
message(FATAL_ERROR "Error: Could not find required component FFTW::${fftw_comp} (${COMPONENT}_INCLUDE_DIR='${${COMPONENT}_INCLUDE_DIR}' and ${COMPONENT}_LIBRARY='${${COMPONENT}_LIBRARY}'.)")
endif()
else()
if(FIND_FFTW_VERBOSE)
message("\tCould not find optional FFTW::${fftw_comp}.")
endif()
if(FIND_FFTW_DEBUG)
message(STATUS "\t\t${COMPONENT}_INCLUDE_DIR='${${COMPONENT}_INCLUDE_DIR}' and ${COMPONENT}_LIBRARY='${${COMPONENT}_LIBRARY}'")
endif()
endif()
endif()
unset(${COMPONENT}_INCLUDE_DIR)
unset(${COMPONENT}_LIBRARY_DIR)
unset(${COMPONENT}_LIBRARY)
unset(FFTWQ_POS)
unset(library)
unset(header)
unset(fftw_comp_no_dash)
unset(component)
unset(COMPONENT)
endforeach()
list(REMOVE_DUPLICATES FFTW_INCLUDE_DIRS)
list(REMOVE_DUPLICATES FFTW_LIBRARY_DIRS)
list(REMOVE_DUPLICATES FFTW_LIBRARIES)
# -- check required variables, version and set FFTW_FOUND to TRUE if ok