Add licence header to MiscFunctions.cmake

This commit is contained in:
Martin Hořeňovský 2022-02-03 00:34:01 +01:00
parent 190f71792a
commit a1e5934aa9
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -1,3 +1,11 @@
# Copyright Catch2 Authors
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# https://www.boost.org/LICENSE_1_0.txt)
# SPDX-License-Identifier: BSL-1.0
include(CheckCXXCompilerFlag) include(CheckCXXCompilerFlag)
function(add_cxx_flag_if_supported_to_targets flagname targets) function(add_cxx_flag_if_supported_to_targets flagname targets)
check_cxx_compiler_flag("${flagname}" HAVE_FLAG_${flagname}) check_cxx_compiler_flag("${flagname}" HAVE_FLAG_${flagname})