From 96b44e7f2700d5179c9cd37cf7f84d44a2215bd9 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 15 Dec 2021 03:58:53 +0000 Subject: build: mark libelf, ncurses, libbsd as REQUIRED This causes CMake to fail in the configure stage rather than failing at build time when e.g. it can't include a header. All of these appear to be required (non-optional) by pg_top. Bug: https://bugs.gentoo.org/773403 Signed-off-by: Sam James --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 508d020..11a0753 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -247,7 +247,7 @@ else(LIBTERMCAP) if(LIBCURSES) target_link_libraries(${PROJECT_NAME} ${LIBCURSES}) else(LIBCURSES) - find_library(LIBNCURSES ncurses) + find_library(LIBNCURSES ncurses REQUIRED) if(LIBNCURSES) target_link_libraries(${PROJECT_NAME} ${LIBNCURSES}) endif(LIBNCURSES) @@ -259,7 +259,7 @@ if(LIBKSTAT) target_link_libraries(${PROJECT_NAME} ${LIBKSTAT}) endif(LIBKSTAT) -find_library(LIBELF elf) +find_library(LIBELF elf REQUIRED) if(LIBELF) target_link_libraries(${PROJECT_NAME} ${LIBELF}) endif(LIBELF) @@ -269,7 +269,7 @@ if(LIBMACH) target_link_libraries(${PROJECT_NAME} ${LIBMACH}) endif(LIBMACH) -find_library(LIBBSD bsd) +find_library(LIBBSD bsd REQUIRED) if(LIBBSD) target_link_libraries(${PROJECT_NAME} ${LIBBSD}) endif(LIBBSD) -- cgit v1.2.3