From d697b219406992900dbb731867a48391203b2c54 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 17 Nov 2019 17:44:48 -0600 Subject: Build: Don't assume skarnet is installed globally --- CMakeLists.txt | 1 + ui/qt5/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0600bbf..ffb117f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,6 +69,7 @@ IF(INSTALL) pkg_check_modules(BLKID REQUIRED blkid) pkg_check_modules(LIBUDEV REQUIRED libudev) pkg_check_modules(PARTED REQUIRED libparted) + find_library(SKARNET NAMES skarnet) find_library(BCNM NAMES wpactrl PATH_SUFFIXES bcnm) if(BCNM STREQUAL "BCNM-NOTFOUND") message(FATAL_ERROR "BCNM is required for the Installation Environment.") diff --git a/ui/qt5/CMakeLists.txt b/ui/qt5/CMakeLists.txt index cef07fb..6279cc1 100644 --- a/ui/qt5/CMakeLists.txt +++ b/ui/qt5/CMakeLists.txt @@ -26,6 +26,6 @@ IF(INSTALL) pkg_check_modules(XKBFile REQUIRED xkbfile) pkg_check_modules(LIBX11 REQUIRED x11) pkg_check_modules(LibCap REQUIRED libcap) - target_link_libraries(horizon-qt5 ${BCNM} skarnet ${LIBUDEV_LIBRARIES} ${LibCap_LIBRARIES} ${LIBX11_LIBRARIES} ${XKBFile_LIBRARIES}) + target_link_libraries(horizon-qt5 ${BCNM} ${SKARNET} ${LIBUDEV_LIBRARIES} ${LibCap_LIBRARIES} ${LIBX11_LIBRARIES} ${XKBFile_LIBRARIES}) # add_executable(horizon-run-qt5 ${RUN_QT_SOURCES}) ENDIF(INSTALL) -- cgit v1.2.3-60-g2f50