From 9d3d19e12347acd69c74c45af43c06ab8d74f26e Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Fri, 14 Jun 2024 20:00:13 +0200 Subject: [PATCH] build: Search for libcpp-httplib before libhttplib The cpp-httplib project has now standardized on libcpp-httplib.so for the shared library, so search for that name first. (cherry picked from commit f83aff58bbf9fdf7439ff16f6387f4063cde1487) --- cmake/FindCppHttplib.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/FindCppHttplib.cmake b/cmake/FindCppHttplib.cmake index 49d80d6e..5061f964 100644 --- a/cmake/FindCppHttplib.cmake +++ b/cmake/FindCppHttplib.cmake @@ -12,9 +12,9 @@ else() if(NOT "${CMAKE_MATCH_0}" STREQUAL "" AND "${_cpphttplib_version_string}" VERSION_GREATER_EQUAL "${CppHttplib_FIND_VERSION}") # Some dists like Fedora package cpp-httplib as a single header while some # dists like Debian package it as a traditional library. - find_library(CPPHTTPLIB_LIBRARY httplib) + find_library(CPPHTTPLIB_LIBRARY cpp-httplib) if(NOT CPPHTTPLIB_LIBRARY) - find_library(CPPHTTPLIB_LIBRARY cpp-httplib) + find_library(CPPHTTPLIB_LIBRARY httplib) endif() if(CPPHTTPLIB_LIBRARY) -- 2.47.2