From: Joel Rosdahl Date: Fri, 14 Jun 2024 18:00:13 +0000 (+0200) Subject: build: Search for libcpp-httplib before libhttplib X-Git-Tag: v4.11~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f83aff58bbf9fdf7439ff16f6387f4063cde1487;p=thirdparty%2Fccache.git 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. --- 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)