From 97262fa114d9559b00646dc07c97601518598a04 Mon Sep 17 00:00:00 2001 From: ethdev Date: Fri, 12 Dec 2014 14:52:24 +0100 Subject: [PATCH] windows fix for previous commit --- libp2p/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libp2p/CMakeLists.txt b/libp2p/CMakeLists.txt index 50ca138f4..6f3f6b712 100644 --- a/libp2p/CMakeLists.txt +++ b/libp2p/CMakeLists.txt @@ -14,7 +14,10 @@ aux_source_directory(. SRC_LIST) # we may not use it in libp2p, but one of our dependecies is including leveldb in header file # and windows is failing to build without that include_directories(${LEVELDB_INCLUDE_DIRS}) -include_directories(${MINIUPNPC_INCLUDE_DIRS}) + +if (MINIUPNPC_FOUND) + include_directories(${MINIUPNPC_INCLUDE_DIRS}) +endif() include_directories(..) set(EXECUTABLE p2p)