Explorar el Código

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 hace 9 años
padre
commit
769b31e0ec
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3
    1
      CMakeLists.txt

+ 3
- 1
CMakeLists.txt Ver fichero

@@ -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