@cryptotaxi247 / netdata-1 / commits / 74eef8b8d

Fix up libsensors vendoring. (#19369)

Austin S. Hemmelgarn committed Jan 27, 2025 at 14:30 UTC 74eef8b8d78857d0509f161ac4e67df37f600bd6
2 files changed +1 -24
packaging/cmake/Modules/FindLibSensors.cmake deleted
-23
@@ -1,23 +0,0 @@
1 -# FindLibSensors.cmake
2 -# Locate libsensors library and headers
3 -
4 -# Locate the libsensors header file
5 -find_path(LibSensors_INCLUDE_DIRS
6 - NAMES sensors/sensors.h
7 - PATHS /usr/include /usr/local/include
8 -)
9 -
10 -# Locate the libsensors library
11 -find_library(LibSensors_LIBRARIES
12 - NAMES sensors
13 - PATHS /usr/lib /usr/local/lib
14 -)
15 -
16 -# Check if both the library and header were found
17 -include(FindPackageHandleStandardArgs)
18 -find_package_handle_standard_args(LibSensors
19 - REQUIRED_VARS LibSensors_LIBRARIES LibSensors_INCLUDE_DIRS
20 -)
21 -
22 -# Mark the variables as advanced (not shown in the GUI by default)
23 -mark_as_advanced(LibSensors_LIBRARIES LibSensors_INCLUDE_DIRS)
src/collectors/debugfs.plugin/libsensors/CMakeLists.txt
+1 -1
@@ -1,5 +1,5 @@
1 # CMake configuration for libsensors
2 -cmake_minimum_required(VERSION 3.5)
2 +cmake_minimum_required(VERSION 3.16.0...3.30)
3
4 # Add static library for libsensors
5 add_library(vendored_libsensors STATIC