summaryrefslogblamecommitdiff
path: root/net-p2p/monero/files/monero-9999-upnp-fix-warning.patch
blob: e45a42781b187e6216ffa1b8841d77a3ff015baf (plain) (tree)






























                                                                                                    
From fca5d21cbe9ee129fdb1c88ca468d604891ecf5c Mon Sep 17 00:00:00 2001
From: Bertrand Jacquin <bertrand@jacquin.bzh>
Date: Wed, 17 Jul 2024 21:03:33 +0100
Subject: [PATCH] upnp: fix warning

  CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
    The package name passed to `find_package_handle_standard_args` (MiniUPnPc)
    does not match the name of the calling package (Miniupnpc).  This can lead
    to problems in calling code that expects `find_package` result variables
    (e.g., `_FOUND`) to follow a certain pattern.
  Call Stack (most recent call first):
    cmake/FindMiniupnpc.cmake:39 (find_package_handle_standard_args)
    external/CMakeLists.txt:38 (find_package)
  This warning is for project developers.  Use -Wno-dev to suppress it.
---
 cmake/FindMiniupnpc.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/FindMiniupnpc.cmake b/cmake/FindMiniupnpc.cmake
index ad2004afcca2..7f4bb6828cfb 100644
--- a/cmake/FindMiniupnpc.cmake
+++ b/cmake/FindMiniupnpc.cmake
@@ -37,7 +37,7 @@ set(MINIUPNP_STATIC_LIBRARIES ${MINIUPNP_STATIC_LIBRARY})
 
 include(FindPackageHandleStandardArgs)
 find_package_handle_standard_args(
-  MiniUPnPc DEFAULT_MSG
+  Miniupnpc DEFAULT_MSG
   MINIUPNP_INCLUDE_DIR
   MINIUPNP_LIBRARY
 )