Skip to content

Commit

Permalink
CMake: update new location of in-tree miniupnpc
Browse files Browse the repository at this point in the history
(cherry picked from commit b16a282f97d8f6c967e8a0b1ecfd75110f095182)
  • Loading branch information
anonimal committed Apr 19, 2018
1 parent f21df05 commit 859db52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ else()
if(STATIC)
message(STATUS "Using miniupnpc from local source tree for static build")
else()
message(STATUS "Using miniupnpc from local source tree (/external/miniupnpc)")
message(STATUS "Using miniupnpc from local source tree (/external/miniupnp/miniupnpc)")
endif()

add_subdirectory(miniupnpc)
add_subdirectory(miniupnp/miniupnpc)

set_property(TARGET libminiupnpc-static PROPERTY FOLDER "external")
if(MSVC)
Expand Down
6 changes: 3 additions & 3 deletions src/p2p/net_node.inl
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@

// We have to look for miniupnpc headers in different places, dependent on if its compiled or external
#ifdef UPNP_STATIC
#include <miniupnpc/miniupnpc.h>
#include <miniupnpc/upnpcommands.h>
#include <miniupnpc/upnperrors.h>
#include <miniupnp/miniupnpc/miniupnpc.h>
#include <miniupnp/miniupnpc/upnpcommands.h>
#include <miniupnp/miniupnpc/upnperrors.h>
#else
#include "miniupnpc.h"
#include "upnpcommands.h"
Expand Down

0 comments on commit 859db52

Please sign in to comment.