mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-12-19 17:37:42 -05:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user