mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-04 05:39:53 +00:00
CMake: Use include_guard only when CMake >= 3.10.0
This commit is contained in:
parent
a63b5aeaa7
commit
6826130d6f
@ -8,7 +8,9 @@
|
|||||||
# The intention is to provide greater flexibility to users to
|
# The intention is to provide greater flexibility to users to
|
||||||
# create their own targets using the *_SRCS variables.
|
# create their own targets using the *_SRCS variables.
|
||||||
|
|
||||||
|
if(NOT ${CMAKE_VERSION} VERSION_LESS "3.10.0")
|
||||||
include_guard(GLOBAL)
|
include_guard(GLOBAL)
|
||||||
|
endif()
|
||||||
|
|
||||||
include(${LWIP_DIR}/contrib/ports/CMakeCommon.cmake)
|
include(${LWIP_DIR}/contrib/ports/CMakeCommon.cmake)
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
|
if(NOT ${CMAKE_VERSION} VERSION_LESS "3.10.0")
|
||||||
include_guard(GLOBAL)
|
include_guard(GLOBAL)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(LWIP_CONTRIB_DIR ${LWIP_DIR}/contrib)
|
set(LWIP_CONTRIB_DIR ${LWIP_DIR}/contrib)
|
||||||
|
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
# The intention is to provide greater flexibility to users to
|
# The intention is to provide greater flexibility to users to
|
||||||
# create their own targets using the *_SRCS variables.
|
# create their own targets using the *_SRCS variables.
|
||||||
|
|
||||||
|
if(NOT ${CMAKE_VERSION} VERSION_LESS "3.10.0")
|
||||||
include_guard(GLOBAL)
|
include_guard(GLOBAL)
|
||||||
|
endif()
|
||||||
|
|
||||||
include(${LWIP_DIR}/contrib/ports/CMakeCommon.cmake)
|
include(${LWIP_DIR}/contrib/ports/CMakeCommon.cmake)
|
||||||
|
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
# The intention is to provide greater flexibility to users to
|
# The intention is to provide greater flexibility to users to
|
||||||
# create their own targets using the *_SRCS variables.
|
# create their own targets using the *_SRCS variables.
|
||||||
|
|
||||||
|
if(NOT ${CMAKE_VERSION} VERSION_LESS "3.10.0")
|
||||||
include_guard(GLOBAL)
|
include_guard(GLOBAL)
|
||||||
|
endif()
|
||||||
|
|
||||||
include(${LWIP_DIR}/contrib/ports/CMakeCommon.cmake)
|
include(${LWIP_DIR}/contrib/ports/CMakeCommon.cmake)
|
||||||
|
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
# The intention is to provide greater flexibility to users to
|
# The intention is to provide greater flexibility to users to
|
||||||
# create their own targets using the *_SRCS variables.
|
# create their own targets using the *_SRCS variables.
|
||||||
|
|
||||||
|
if(NOT ${CMAKE_VERSION} VERSION_LESS "3.10.0")
|
||||||
include_guard(GLOBAL)
|
include_guard(GLOBAL)
|
||||||
|
endif()
|
||||||
|
|
||||||
include(${LWIP_DIR}/contrib/ports/CMakeCommon.cmake)
|
include(${LWIP_DIR}/contrib/ports/CMakeCommon.cmake)
|
||||||
|
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
# The intention is to provide greater flexibility to users to
|
# The intention is to provide greater flexibility to users to
|
||||||
# create their own targets using the *_SRCS variables.
|
# create their own targets using the *_SRCS variables.
|
||||||
|
|
||||||
|
if(NOT ${CMAKE_VERSION} VERSION_LESS "3.10.0")
|
||||||
include_guard(GLOBAL)
|
include_guard(GLOBAL)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(LWIP_TESTDIR ${LWIP_DIR}/test/unit)
|
set(LWIP_TESTDIR ${LWIP_DIR}/test/unit)
|
||||||
set(LWIP_TESTFILES
|
set(LWIP_TESTFILES
|
||||||
|
Loading…
Reference in New Issue
Block a user