]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: add `find_package()` missing from `USE_MSH3` option
authorViktor Szakats <commit@vsz.me>
Mon, 19 Aug 2024 23:13:14 +0000 (01:13 +0200)
committerViktor Szakats <commit@vsz.me>
Tue, 20 Aug 2024 09:38:27 +0000 (11:38 +0200)
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

CMakeLists.txt

index 269a6e286ff5fd211171e68f62bd95e8f2d2c0f3..a4b6fb4678a26220e0b66ecffbbcc78adbfa0ce7 100644 (file)
@@ -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})