mirror of
https://github.com/netdata/netdata.git
synced 2025-04-12 16:58:10 +00:00
Fix up libsensors vendoring. (#19369)
This commit is contained in:
parent
34a06470f5
commit
74eef8b8d7
2 changed files with 1 additions and 24 deletions
|
@ -1,23 +0,0 @@
|
||||||
# FindLibSensors.cmake
|
|
||||||
# Locate libsensors library and headers
|
|
||||||
|
|
||||||
# Locate the libsensors header file
|
|
||||||
find_path(LibSensors_INCLUDE_DIRS
|
|
||||||
NAMES sensors/sensors.h
|
|
||||||
PATHS /usr/include /usr/local/include
|
|
||||||
)
|
|
||||||
|
|
||||||
# Locate the libsensors library
|
|
||||||
find_library(LibSensors_LIBRARIES
|
|
||||||
NAMES sensors
|
|
||||||
PATHS /usr/lib /usr/local/lib
|
|
||||||
)
|
|
||||||
|
|
||||||
# Check if both the library and header were found
|
|
||||||
include(FindPackageHandleStandardArgs)
|
|
||||||
find_package_handle_standard_args(LibSensors
|
|
||||||
REQUIRED_VARS LibSensors_LIBRARIES LibSensors_INCLUDE_DIRS
|
|
||||||
)
|
|
||||||
|
|
||||||
# Mark the variables as advanced (not shown in the GUI by default)
|
|
||||||
mark_as_advanced(LibSensors_LIBRARIES LibSensors_INCLUDE_DIRS)
|
|
|
@ -1,5 +1,5 @@
|
||||||
# CMake configuration for libsensors
|
# CMake configuration for libsensors
|
||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.16.0...3.30)
|
||||||
|
|
||||||
# Add static library for libsensors
|
# Add static library for libsensors
|
||||||
add_library(vendored_libsensors STATIC
|
add_library(vendored_libsensors STATIC
|
||||||
|
|
Loading…
Add table
Reference in a new issue