Skip to content

Commit

Permalink
cmake: Fix undefined reference to `kvm_openfiles' on BSD's
Browse files Browse the repository at this point in the history
  • Loading branch information
imwints committed Feb 9, 2024
1 parent edcb68c commit a0e2a5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
endif()

find_package(devstat REQUIRED)
target_link_libraries(btop devstat::devstat)
find_package(kvm REQUIRED)
target_link_libraries(btop devstat::devstat kvm::kvm)
if(BTOP_STATIC)
find_package(elf REQUIRED)
find_package(kvm REQUIRED)
target_link_libraries(btop elf::elf kvm::kvm)
target_link_libraries(btop elf::elf)
endif()
endif()

Expand Down

0 comments on commit a0e2a5c

Please sign in to comment.