CMake: Use include_guard only when CMake >= 3.10.0

This commit is contained in:
Dirk Ziegelmeier 2018-10-12 22:01:25 +02:00
parent a63b5aeaa7
commit 6826130d6f
6 changed files with 19 additions and 7 deletions

View File

@ -8,7 +8,9 @@
# The intention is to provide greater flexibility to users to
# create their own targets using the *_SRCS variables.
include_guard(GLOBAL)
if(NOT ${CMAKE_VERSION} VERSION_LESS "3.10.0")
include_guard(GLOBAL)
endif()
include(${LWIP_DIR}/contrib/ports/CMakeCommon.cmake)

View File

@ -1,4 +1,6 @@
include_guard(GLOBAL)
if(NOT ${CMAKE_VERSION} VERSION_LESS "3.10.0")
include_guard(GLOBAL)
endif()
set(LWIP_CONTRIB_DIR ${LWIP_DIR}/contrib)

View File

@ -8,7 +8,9 @@
# The intention is to provide greater flexibility to users to
# create their own targets using the *_SRCS variables.
include_guard(GLOBAL)
if(NOT ${CMAKE_VERSION} VERSION_LESS "3.10.0")
include_guard(GLOBAL)
endif()
include(${LWIP_DIR}/contrib/ports/CMakeCommon.cmake)

View File

@ -8,7 +8,9 @@
# The intention is to provide greater flexibility to users to
# create their own targets using the *_SRCS variables.
include_guard(GLOBAL)
if(NOT ${CMAKE_VERSION} VERSION_LESS "3.10.0")
include_guard(GLOBAL)
endif()
include(${LWIP_DIR}/contrib/ports/CMakeCommon.cmake)

View File

@ -8,7 +8,9 @@
# The intention is to provide greater flexibility to users to
# create their own targets using the *_SRCS variables.
include_guard(GLOBAL)
if(NOT ${CMAKE_VERSION} VERSION_LESS "3.10.0")
include_guard(GLOBAL)
endif()
include(${LWIP_DIR}/contrib/ports/CMakeCommon.cmake)

View File

@ -5,10 +5,12 @@
#
# This file is NOT designed (on purpose) to be used as cmake
# subdir via add_subdirectory()
# 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.
include_guard(GLOBAL)
if(NOT ${CMAKE_VERSION} VERSION_LESS "3.10.0")
include_guard(GLOBAL)
endif()
set(LWIP_TESTDIR ${LWIP_DIR}/test/unit)
set(LWIP_TESTFILES