From c7a38e3e9ab868526b2953d3094c4be8da5ed97c Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 22 Jun 2020 21:50:30 -0500 Subject: CMake: Ensure BCNM is only searched for in UI mode --- ui/qt5/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui/qt5/CMakeLists.txt') diff --git a/ui/qt5/CMakeLists.txt b/ui/qt5/CMakeLists.txt index 87f4d64..a138f07 100644 --- a/ui/qt5/CMakeLists.txt +++ b/ui/qt5/CMakeLists.txt @@ -78,6 +78,11 @@ IF(INSTALL) pkg_check_modules(XKBFile REQUIRED xkbfile) pkg_check_modules(LIBX11 REQUIRED x11) pkg_check_modules(LibCap REQUIRED libcap) + 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.") + endif() target_link_libraries(horizon-qt5 ${BCNM} ${SKARNET} ${LIBUDEV_LIBRARIES} ${LibCap_LIBRARIES} ${LIBX11_LIBRARIES} ${XKBFile_LIBRARIES} diskman) add_executable(horizon-run-qt5 ${RUN_QT_SOURCES}) target_link_libraries(horizon-run-qt5 Qt5::Widgets) -- cgit v1.2.3-70-g09d2