ソースを参照

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 年 前
コミット
769b31e0ec
共有1 個のファイルを変更した3 個の追加1 個の削除を含む
  1. 3
    1
      CMakeLists.txt

+ 3
- 1
CMakeLists.txt ファイルの表示

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