From 769b31e0ecf812e56e4300900300ef918f6fc372 Mon Sep 17 00:00:00 2001 From: Mihai Tudor Panu Date: Thu, 23 Apr 2015 14:07:26 -0700 Subject: [PATCH] cmake: forced mraa pkg check every time a config is generated This fixes an issue with the wrong libmraa version being reported by cmake on configuration after a mraa update, even though the build will use the newer binary. Signed-off-by: Mihai Tudor Panu --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c1bd6a0e..cd1d69c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,9 @@ endif () find_package (Threads REQUIRED) find_package (PkgConfig REQUIRED) -# force the libmraa version to be the required version + +# force a libmraa search and minimum required version every time a config is generated +unset(MRAA_FOUND CACHE) pkg_check_modules (MRAA REQUIRED mraa>=0.6.0) message (INFO " found libmraa version: ${MRAA_VERSION}")