diff options
author | Sam James <sam@gentoo.org> | 2021-12-15 03:58:53 +0000 |
---|---|---|
committer | Mark Wong <markwkm@gmail.com> | 2021-12-21 13:01:03 -0800 |
commit | 96b44e7f2700d5179c9cd37cf7f84d44a2215bd9 (patch) | |
tree | d9698060ca95caae6757ff575864f1b44b969ea7 | |
parent | 3c6a56e335cc00e6bf87593b5fe40b3ff5fcac9c (diff) |
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 <sam@gentoo.org>
-rw-r--r-- | CMakeLists.txt | 6 |
1 files 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) |