From de532e7c1d195d047436dfe65e5669e90048c5d0 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 21 May 2025 15:07:31 +0200 Subject: [PATCH] build: let cmake find httplib target again Despite having /usr/lib64/cmake/httplib/httplibConfig.cmake, httplib::httplib was unset and cmake always entered the second block ("else" block) of the conditional on openSUSE Tumbleweed 20250515 (cpp-httplib-devel-0.20.1-1.1). By adding back the `find_package` call, httplib::httplib is now defined and the first block of the conditional is executed as desired. Fixes: 88e487c724e6811f70c1a74dbbbb2944aad0c81e --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8001f2c9..9c6129cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -180,6 +180,7 @@ endif() find_package(SDL3 REQUIRED CONFIG REQUIRED COMPONENTS SDL3) find_package(glm REQUIRED) +find_package(httplib QUIET) if (TARGET httplib::httplib) add_library(httplib ALIAS httplib::httplib) else()