CMake: Use include_guard only when CMake >= 3.10.0
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user