mirror of
https://github.com/boostorg/mp11.git
synced 2025-12-04 15:59:19 +01:00
25 lines
549 B
CMake
25 lines
549 B
CMake
|
|
# Copyright 2019 Peter Dimov
|
||
|
|
# 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
|
||
|
|
|
||
|
|
function(boost_message type)
|
||
|
|
|
||
|
|
if(type STREQUAL "VERBOSE" OR type STREQUAL "DEBUG")
|
||
|
|
if(Boost_${type})
|
||
|
|
set(type STATUS)
|
||
|
|
elseif(CMAKE_VERSION VERSION_LESS 3.15)
|
||
|
|
return()
|
||
|
|
endif()
|
||
|
|
endif()
|
||
|
|
|
||
|
|
set(m "")
|
||
|
|
math(EXPR last "${ARGC}-1")
|
||
|
|
|
||
|
|
foreach(i RANGE 1 ${last})
|
||
|
|
set(m "${m}${ARGV${i}}")
|
||
|
|
endforeach()
|
||
|
|
|
||
|
|
message(${type} "${m}")
|
||
|
|
|
||
|
|
endfunction()
|