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: 88e487c724
This commit is contained in:
Jan Engelhardt
2025-05-21 15:07:31 +02:00
parent fec33e1492
commit de532e7c1d

View File

@@ -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()