mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-24 16:32:25 +00:00
Only check for upnp version if version is determined
This commit is contained in:
parent
02e5dcd2fa
commit
d0bbc5912a
1 changed files with 5 additions and 5 deletions
|
@ -46,13 +46,13 @@ IF(MINIUPNPC_FOUND)
|
||||||
file(STRINGS "${MINIUPNP_INCLUDE_DIR}/miniupnpc.h" MINIUPNPC_API_VERSION_STR REGEX "^#define[\t ]+MINIUPNPC_API_VERSION[\t ]+[0-9]+")
|
file(STRINGS "${MINIUPNP_INCLUDE_DIR}/miniupnpc.h" MINIUPNPC_API_VERSION_STR REGEX "^#define[\t ]+MINIUPNPC_API_VERSION[\t ]+[0-9]+")
|
||||||
if(MINIUPNPC_API_VERSION_STR MATCHES "^#define[\t ]+MINIUPNPC_API_VERSION[\t ]+([0-9]+)")
|
if(MINIUPNPC_API_VERSION_STR MATCHES "^#define[\t ]+MINIUPNPC_API_VERSION[\t ]+([0-9]+)")
|
||||||
set(MINIUPNPC_API_VERSION "${CMAKE_MATCH_1}")
|
set(MINIUPNPC_API_VERSION "${CMAKE_MATCH_1}")
|
||||||
endif()
|
|
||||||
|
|
||||||
if (${MINIUPNPC_API_VERSION} GREATER "10" OR ${MINIUPNPC_API_VERSION} EQUAL "10")
|
if (${MINIUPNPC_API_VERSION} GREATER "10" OR ${MINIUPNPC_API_VERSION} EQUAL "10")
|
||||||
message(STATUS "Found miniupnpc API version " ${MINIUPNPC_API_VERSION})
|
message(STATUS "Found miniupnpc API version " ${MINIUPNPC_API_VERSION})
|
||||||
set(MINIUPNP_FOUND true)
|
set(MINIUPNP_FOUND true)
|
||||||
set(MINIUPNPC_VERSION_1_7_OR_HIGHER true)
|
set(MINIUPNPC_VERSION_1_7_OR_HIGHER true)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
mark_as_advanced(MINIUPNP_INCLUDE_DIR MINIUPNP_LIBRARY MINIUPNP_STATIC_LIBRARY)
|
mark_as_advanced(MINIUPNP_INCLUDE_DIR MINIUPNP_LIBRARY MINIUPNP_STATIC_LIBRARY)
|
||||||
|
|
Loading…
Reference in a new issue