aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-01-03 19:54:07 +0200
committerRiccardo Spagni <ric@spagni.net>2016-01-03 19:54:07 +0200
commite4eb07fb99c8448b1126d993b02888db4621439c (patch)
tree5fa3d8200fb8d9339146e1148e30d784b7a7cf9b
parentMerge pull request #594 (diff)
parentfix: cmake parse error on Ubuntu 14.04 (diff)
downloadmonero-e4eb07fb99c8448b1126d993b02888db4621439c.tar.xz
Merge pull request #595
a52cf36 fix: cmake parse error on Ubuntu 14.04 (moneroexamples)
-rw-r--r--external/miniupnpc/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/external/miniupnpc/CMakeLists.txt b/external/miniupnpc/CMakeLists.txt
index 51331ecb5..40aa0c832 100644
--- a/external/miniupnpc/CMakeLists.txt
+++ b/external/miniupnpc/CMakeLists.txt
@@ -4,6 +4,7 @@ project (miniupnpc C)
set (MINIUPNPC_VERSION 1.9)
set (MINIUPNPC_API_VERSION 15)
+if (0)
#[[ - we comment out this block as we don't support these other build types
if (NOT CMAKE_BUILD_TYPE)
if (WIN32)
@@ -15,7 +16,8 @@ if (NOT CMAKE_BUILD_TYPE)
"Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel."
FORCE)
endif()
-]]
+#]]
+endif (0)
option (UPNPC_BUILD_STATIC "Build static library" TRUE)
option (UPNPC_BUILD_SHARED "Build shared library" FALSE)
@@ -41,6 +43,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
add_definitions (-D_DARWIN_C_SOURCE)
endif ()
+if (0)
#[[ - we comment out this block as we already set flags
# Set compiler specific build flags
if (CMAKE_COMPILER_IS_GNUC)
@@ -64,7 +67,8 @@ if (CMAKE_COMPILER_IS_GNUC)
endif (NOT CONFIGURED)
endif ()
-]]
+#]]
+endif (0)
configure_file (miniupnpcstrings.h.cmake ${CMAKE_BINARY_DIR}/miniupnpcstrings.h)
include_directories (${CMAKE_BINARY_DIR})