diff options
author | Howard Chu <hyc@symas.com> | 2016-01-03 08:22:06 +0000 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2016-01-03 08:22:06 +0000 |
commit | 28b82718ffcb3ba93a88c20453e9fd4890613b20 (patch) | |
tree | b9918bb3193c27d42d8b69d2bbd462883529faa8 /external/miniupnpc | |
parent | Fix release flags (diff) | |
download | monero-28b82718ffcb3ba93a88c20453e9fd4890613b20.tar.xz |
Avoid cmake-3.x block comment syntax
Diffstat (limited to 'external/miniupnpc')
-rw-r--r-- | external/miniupnpc/CMakeLists.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/external/miniupnpc/CMakeLists.txt b/external/miniupnpc/CMakeLists.txt index 51331ecb5..1e7645a9d 100644 --- a/external/miniupnpc/CMakeLists.txt +++ b/external/miniupnpc/CMakeLists.txt @@ -4,7 +4,8 @@ project (miniupnpc C) set (MINIUPNPC_VERSION 1.9) set (MINIUPNPC_API_VERSION 15) -#[[ - we comment out this block as we don't support these other build types +# - we comment out this block as we don't support these other build types +if(0) if (NOT CMAKE_BUILD_TYPE) if (WIN32) set (DEFAULT_BUILD_TYPE MinSizeRel) @@ -15,7 +16,7 @@ if (NOT CMAKE_BUILD_TYPE) "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE) endif() -]] +endif() option (UPNPC_BUILD_STATIC "Build static library" TRUE) option (UPNPC_BUILD_SHARED "Build shared library" FALSE) @@ -41,7 +42,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Darwin") add_definitions (-D_DARWIN_C_SOURCE) endif () -#[[ - we comment out this block as we already set flags +# - we comment out this block as we already set flags +if(0) # Set compiler specific build flags if (CMAKE_COMPILER_IS_GNUC) # Set our own default flags at first run. @@ -64,7 +66,7 @@ if (CMAKE_COMPILER_IS_GNUC) endif (NOT CONFIGURED) endif () -]] +endif() configure_file (miniupnpcstrings.h.cmake ${CMAKE_BINARY_DIR}/miniupnpcstrings.h) include_directories (${CMAKE_BINARY_DIR}) |