From b26aff3cd0155b56945671bf2d221e148229aab7 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Tue, 3 Jan 2017 15:56:58 -0500 Subject: [PATCH] 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 --- awesomeConfig.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index ba151ef7..3fdbb984 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -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)