From db32ab1f8520c5a577ee9e5bd05ed31b106583ac Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 21 Dec 2019 21:32:06 +0200 Subject: [PATCH] Boost_DEBUG should also enable VERBOSE output --- include/BoostMessage.cmake | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/BoostMessage.cmake b/include/BoostMessage.cmake index 675ae8b..35abbf0 100644 --- a/include/BoostMessage.cmake +++ b/include/BoostMessage.cmake @@ -8,8 +8,16 @@ endif() function(boost_message type) - if(type STREQUAL "VERBOSE" OR type STREQUAL "DEBUG") - if(Boost_${type}) + if(type STREQUAL "VERBOSE") + if(Boost_VERBOSE OR Boost_DEBUG) + set(type STATUS) + elseif(CMAKE_VERSION VERSION_LESS 3.15) + return() + endif() + endif() + + if(type STREQUAL "DEBUG") + if(Boost_DEBUG) set(type STATUS) elseif(CMAKE_VERSION VERSION_LESS 3.15) return()