CMake: add an include guard since files are intended to be included in other projects

This commit is contained in:
Dirk Ziegelmeier 2018-10-05 08:02:34 +02:00
parent 1f554efcbb
commit d9c9b55766
6 changed files with 12 additions and 0 deletions

View File

@ -8,6 +8,8 @@
# The intention is to provide greater flexibility to users to
# create their own targets using the *_SRCS variables.
include_guard(GLOBAL)
set(lwipcontribexamples_SRCS
${LWIP_CONTRIB_DIR}/examples/httpd/fs_example/fs_example.c
${LWIP_CONTRIB_DIR}/examples/httpd/ssi_example/ssi_example.c

View File

@ -1,3 +1,5 @@
include_guard(GLOBAL)
set(LWIP_CONTRIB_DIR ${LWIP_DIR}/contrib)
# ARM mbedtls support https://tls.mbed.org/

View File

@ -8,6 +8,8 @@
# The intention is to provide greater flexibility to users to
# create their own targets using the *_SRCS variables.
include_guard(GLOBAL)
set(lwipcontribportunix_SRCS
${LWIP_CONTRIB_DIR}/ports/unix/port/sys_arch.c
${LWIP_CONTRIB_DIR}/ports/unix/port/perf.c

View File

@ -8,6 +8,8 @@
# The intention is to provide greater flexibility to users to
# create their own targets using the *_SRCS variables.
include_guard(GLOBAL)
set(lwipcontribportwindows_SRCS
${LWIP_CONTRIB_DIR}/ports/win32/sys_arch.c
${LWIP_CONTRIB_DIR}/ports/win32/sio.c

View File

@ -8,6 +8,8 @@
# The intention is to provide greater flexibility to users to
# create their own targets using the *_SRCS variables.
include_guard(GLOBAL)
set(LWIP_VERSION_MAJOR "2")
set(LWIP_VERSION_MINOR "2")
set(LWIP_VERSION_REVISION "0")

View File

@ -8,6 +8,8 @@
# The intention is to provide greater flexibility to users to
# create their own targets using the *_SRCS variables.
include_guard(GLOBAL)
set(LWIP_TESTDIR ${LWIP_DIR}/test/unit)
set(LWIP_TESTFILES
${LWIP_TESTDIR}/lwip_unittests.c