From ebbb769a6aaf0a6245111eb55f239d5c45be0cb9 Mon Sep 17 00:00:00 2001 From: Steffen Winter Date: Sun, 26 Nov 2023 21:39:13 +0100 Subject: Move calls to find_package to where they're required --- CMakeLists.txt | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 4765902..862b66e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,14 +43,6 @@ if(BTOP_STATIC) set(CMAKE_FIND_LIBRARY_SUFFIXES ".a") endif() -if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") - find_package(devstat REQUIRED) - find_package(kvm REQUIRED) - if(BTOP_STATIC) - find_package(elf REQUIRED) - endif() -endif() - include(CheckCXXCompilerFlag) include(CheckIPOSupported) @@ -153,8 +145,11 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") target_link_libraries(btop PRIVATE $