Commit a55b13c3 authored by Abhijeet  sharma's avatar Abhijeet sharma

Fix Build Fails Due to variable Not set in FINDLIBFWUPD.cmake

Summary: There was no check condition, that the variables in FINDLIBFWUPD.cmake file is set or unset. This diff checks for it. Also, there was a discrepancy for fwupd lib to required or optional, this fixes it. After applying this patch, the build errors are fixed.

Reviewers: apol, davidedmundson

Reviewed By: apol

Subscribers: plasma-devel

Tags: #plasma, #discover_software_store

Differential Revision: https://phabricator.kde.org/D14566
parent f74ee5fb
......@@ -30,7 +30,7 @@ find_package(KF5NewStuff 5.23 CONFIG)
set(CMAKE_AUTORCC ON)
pkg_check_modules(FLATPAK flatpak>=0.6.12)
find_package(LIBFWUPD 1.0.7 REQUIRED)
find_package(LIBFWUPD 1.0.7)
if(NOT CMAKE_VERSION VERSION_LESS "3.10.0")
# CMake 3.9+ warns about automoc on files without Q_OBJECT, and doesn't know about other macros.
......
......@@ -46,7 +46,8 @@ else (LIBFWUPD_INCLUDE_DIRS AND LIBFWUPD_LIBRARIES)
HINTS fwupd-1/libfwupd
)
set(LIBFWUPD_FOUND TRUE)
if(LIBFWUPD_INCLUDE_DIRS AND LIBFWUPD_LIBRARIES)
set(LIBFWUPD_FOUND TRUE)
endif (LIBFWUPD_INCLUDE_DIRS AND LIBFWUPD_LIBRARIES)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment