From 49119ae7eb0d00790b2f522a0d0767279f75b57f Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Wed, 12 Jan 2022 19:14:56 +0100 Subject: [PATCH] [v0.22] Disable pciutils hwdb compilation (useless for gpufetch) to avoid linking against udev --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f3ed5b..da53e01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,7 @@ if(NOT ${PCIUTILS_FOUND}) ExternalProject_Add(pciutils GIT_REPOSITORY https://github.com/pciutils/pciutils CONFIGURE_COMMAND "" - BUILD_COMMAND make SHARED=no + BUILD_COMMAND make SHARED=no HWDB=no BUILD_IN_SOURCE true INSTALL_COMMAND make PREFIX=${PCIUTILS_INSTALL_LOCATION} install-lib ) @@ -90,7 +90,7 @@ if(ENABLE_CUDA_BACKEND) target_link_libraries(gpufetch cuda_backend) endif() -target_link_libraries(gpufetch pci z udev) +target_link_libraries(gpufetch pci z) install(TARGETS gpufetch DESTINATION bin) if(NOT WIN32)