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:
parent
58fed31d88
commit
b26aff3cd0
|
@ -142,6 +142,7 @@ set(AWESOME_DEPENDENCIES
|
||||||
|
|
||||||
# Check the deps one by one
|
# Check the deps one by one
|
||||||
foreach(dependency ${AWESOME_DEPENDENCIES})
|
foreach(dependency ${AWESOME_DEPENDENCIES})
|
||||||
|
unset(TMP_DEP_FOUND CACHE)
|
||||||
pkg_check_modules(TMP_DEP REQUIRED ${dependency})
|
pkg_check_modules(TMP_DEP REQUIRED ${dependency})
|
||||||
|
|
||||||
if(NOT TMP_DEP_FOUND)
|
if(NOT TMP_DEP_FOUND)
|
||||||
|
|
Loading…
Reference in New Issue