build: Clear the cache when checking if a package is present

While on Gentoo I get the right error message anyway, apparently
this isn't universal.

Fix #1356
This commit is contained in:
Emmanuel Lepage Vallee 2017-01-03 15:56:58 -05:00
parent 58fed31d88
commit b26aff3cd0

View file

@ -142,6 +142,7 @@ set(AWESOME_DEPENDENCIES
# Check the deps one by one
foreach(dependency ${AWESOME_DEPENDENCIES})
unset(TMP_DEP_FOUND CACHE)
pkg_check_modules(TMP_DEP REQUIRED ${dependency})
if(NOT TMP_DEP_FOUND)