mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
Avoid cmake-3.x block comment syntax
This commit is contained in:
parent
26aac68095
commit
28b82718ff
1 changed files with 6 additions and 4 deletions
10
external/miniupnpc/CMakeLists.txt
vendored
10
external/miniupnpc/CMakeLists.txt
vendored
|
@ -4,7 +4,8 @@ project (miniupnpc C)
|
||||||
set (MINIUPNPC_VERSION 1.9)
|
set (MINIUPNPC_VERSION 1.9)
|
||||||
set (MINIUPNPC_API_VERSION 15)
|
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 (NOT CMAKE_BUILD_TYPE)
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set (DEFAULT_BUILD_TYPE MinSizeRel)
|
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."
|
"Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel."
|
||||||
FORCE)
|
FORCE)
|
||||||
endif()
|
endif()
|
||||||
]]
|
endif()
|
||||||
|
|
||||||
option (UPNPC_BUILD_STATIC "Build static library" TRUE)
|
option (UPNPC_BUILD_STATIC "Build static library" TRUE)
|
||||||
option (UPNPC_BUILD_SHARED "Build shared library" FALSE)
|
option (UPNPC_BUILD_SHARED "Build shared library" FALSE)
|
||||||
|
@ -41,7 +42,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||||
add_definitions (-D_DARWIN_C_SOURCE)
|
add_definitions (-D_DARWIN_C_SOURCE)
|
||||||
endif ()
|
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
|
# Set compiler specific build flags
|
||||||
if (CMAKE_COMPILER_IS_GNUC)
|
if (CMAKE_COMPILER_IS_GNUC)
|
||||||
# Set our own default flags at first run.
|
# Set our own default flags at first run.
|
||||||
|
@ -64,7 +66,7 @@ if (CMAKE_COMPILER_IS_GNUC)
|
||||||
|
|
||||||
endif (NOT CONFIGURED)
|
endif (NOT CONFIGURED)
|
||||||
endif ()
|
endif ()
|
||||||
]]
|
endif()
|
||||||
|
|
||||||
configure_file (miniupnpcstrings.h.cmake ${CMAKE_BINARY_DIR}/miniupnpcstrings.h)
|
configure_file (miniupnpcstrings.h.cmake ${CMAKE_BINARY_DIR}/miniupnpcstrings.h)
|
||||||
include_directories (${CMAKE_BINARY_DIR})
|
include_directories (${CMAKE_BINARY_DIR})
|
||||||
|
|
Loading…
Reference in a new issue