Browse Source

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 <mihai.tudor.panu@intel.com>
Mihai Tudor Panu 9 years ago
parent
commit
769b31e0ec
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      CMakeLists.txt

+ 3
- 1
CMakeLists.txt View File

@@ -12,7 +12,9 @@ endif ()
12 12
 
13 13
 find_package (Threads REQUIRED)
14 14
 find_package (PkgConfig REQUIRED)
15
-# force the libmraa version to be the required version
15
+
16
+# force a libmraa search and minimum required version every time a config is generated 
17
+unset(MRAA_FOUND CACHE)
16 18
 pkg_check_modules (MRAA REQUIRED mraa>=0.6.0)
17 19
 message (INFO " found libmraa version: ${MRAA_VERSION}")
18 20