Skip to content

Recheck pkg-config on parameter change.

Matthew Hanna requested to merge mhanna21/cmake:pkg-config-recheck into master

Currently, once pkg_check_modules succeeds, it will never call _pkg_check_modules_internal again. That means that if the parameters to pkg_check_modules are changed, cmake will be called to reconfigure, but nothing will change. This change is to store the full string of arguments to pkg_check_modules and override the FOUND optimization so that the arguments are reevaluated when modified.

Merge request reports