summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2021-09-27 13:36:54 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-09-27 13:42:18 +0000
commit71cee617fd873f4578b3c37235e667e163046df5 (patch)
tree20fa8bf0767b53aadb8b7662ec4adac54a67f3aa
parent25faf2e0015a26fb94fe09e0ef745bb1d81e31be (diff)
Fix invalid call to CMake's find_library
Make sure to pass also a <VAR> to find_library. This fixes a configure failure on Linux without pkg-config; the result of the search is currently ignored, anyhow. Fixes: QTBUG-96914 Change-Id: Ic11610ca38173e0b8ed2fde7f9c707c6e0d77ac1 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit f1b39840a0975e9e76dbb1e5a3fcd9001f87697a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--cmake/FindSensorfw.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/FindSensorfw.cmake b/cmake/FindSensorfw.cmake
index 6b7ee507..22f3ee1f 100644
--- a/cmake/FindSensorfw.cmake
+++ b/cmake/FindSensorfw.cmake
@@ -6,5 +6,5 @@ if (PKG_CONFIG_FOUND)
endif()
else()
message("Sensorfw pkg not found. Looking for library")
- find_library(sensorfw)
+ find_library(Sensorfw sensorfw)
endif()