From: Viktor Szakats Date: Mon, 19 Aug 2024 23:13:14 +0000 (+0200) Subject: cmake: add `find_package()` missing from `USE_MSH3` option X-Git-Tag: curl-8_10_0~190 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd683f9071430739b318e3070806cc28e9dc6f60;p=thirdparty%2Fcurl.git cmake: add `find_package()` missing from `USE_MSH3` option The original patch added the Find module and CMake option. But the logic missed a `find_package(MSH3)` call to use that Find module, leaving the referenced `MSH3_INCLUDE_DIRS`, `MSH3_LIBRARIES` variables undefined. Blind fix. Follow-up to 37492ebbfa24ba4e700e6655b3dbc2bdd65c894a #8517 Closes #14609 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 269a6e286f..a4b6fb4678 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -853,6 +853,7 @@ if(USE_MSH3) if(USE_NGTCP2 OR USE_QUICHE) message(FATAL_ERROR "Only one HTTP/3 backend can be selected!") endif() + find_package(MSH3 REQUIRED) set(USE_MSH3 ON) include_directories(${MSH3_INCLUDE_DIRS}) list(APPEND CURL_LIBS ${MSH3_LIBRARIES})