diff --git a/cmake/CommonModules/CsDebug.cmake b/cmake/CommonModules/CsDebug.cmake index 002ef4404..50525a255 100644 --- a/cmake/CommonModules/CsDebug.cmake +++ b/cmake/CommonModules/CsDebug.cmake @@ -90,3 +90,14 @@ endfunction() function(pn variable) message(NOTICE "${variable} : ${${variable}}") endfunction() + +# Print clearly visible notice message about passed BOOL variable +function(pb variable) + if(NOT DEFINED ${variable}) + message("|||-- ${variable} : ${variable}-NOTFOUND") + elseif(${variable}) + message("|||-- ${variable} : ON") + else() + message("|||-- ${variable} : OFF") + endif() +endfunction()