소스 검색

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