From 6b2b3051177dd9b6db7659ba1d8cf76f019e12e2 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 21 Dec 2019 15:50:29 +0200 Subject: [PATCH] Update .cmake files --- cmake/BoostFetch.cmake | 4 ++++ cmake/BoostMessage.cmake | 4 ++++ cmake/BoostTest.cmake | 4 ++++ cmake/BoostTestJamfile.cmake | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/cmake/BoostFetch.cmake b/cmake/BoostFetch.cmake index eb1df3a..92bed8f 100644 --- a/cmake/BoostFetch.cmake +++ b/cmake/BoostFetch.cmake @@ -2,6 +2,10 @@ # Distributed under the Boost Software License, Version 1.0. # See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt +if(NOT CMAKE_VERSION VERSION_LESS 3.10) + include_guard() +endif() + if(NOT COMMAND FetchContent_Populate) if(CMAKE_VERSION VERSION_LESS 3.11) diff --git a/cmake/BoostMessage.cmake b/cmake/BoostMessage.cmake index 4a12b58..675ae8b 100644 --- a/cmake/BoostMessage.cmake +++ b/cmake/BoostMessage.cmake @@ -2,6 +2,10 @@ # Distributed under the Boost Software License, Version 1.0. # See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt +if(NOT CMAKE_VERSION VERSION_LESS 3.10) + include_guard() +endif() + function(boost_message type) if(type STREQUAL "VERBOSE" OR type STREQUAL "DEBUG") diff --git a/cmake/BoostTest.cmake b/cmake/BoostTest.cmake index 01afe6f..2e03de6 100644 --- a/cmake/BoostTest.cmake +++ b/cmake/BoostTest.cmake @@ -2,6 +2,10 @@ # Distributed under the Boost Software License, Version 1.0. # See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt +if(NOT CMAKE_VERSION VERSION_LESS 3.10) + include_guard() +endif() + function(boost_test) cmake_parse_arguments(_ "" "TYPE;PREFIX;NAME" "SOURCES;LIBRARIES;ARGUMENTS" ${ARGN}) diff --git a/cmake/BoostTestJamfile.cmake b/cmake/BoostTestJamfile.cmake index 90297ae..ad8d385 100644 --- a/cmake/BoostTestJamfile.cmake +++ b/cmake/BoostTestJamfile.cmake @@ -2,6 +2,10 @@ # Distributed under the Boost Software License, Version 1.0. # See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt +if(NOT CMAKE_VERSION VERSION_LESS 3.10) + include_guard() +endif() + include(BoostTest) include(BoostMessage)