From f8deea8e3c5801aa9d694a70fcb728d57e96d31e Mon Sep 17 00:00:00 2001 From: Oscar Abrina Date: Wed, 17 Mar 2021 18:30:42 -0700 Subject: [PATCH] Make logging less verbose --- tools/cmake/utility.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/cmake/utility.cmake b/tools/cmake/utility.cmake index 411c2d3619..8ab1c1aef9 100644 --- a/tools/cmake/utility.cmake +++ b/tools/cmake/utility.cmake @@ -52,6 +52,7 @@ function(set_macro_definitions) # Check if MACRO_DEFINITIONS_FILES_TO_CHECK has the required macros defined already. get_target_property(APPLICATION_INCLUDES ${application_target} INCLUDE_DIRECTORIES) set(CMAKE_REQUIRED_INCLUDES ${APPLICATION_INCLUDES}) + set(CMAKE_REQUIRED_QUIET TRUE) unset(HAVE_${required_macro_definition} CACHE) check_symbol_exists(${required_macro_definition} ${MACRO_DEFINITIONS_FILES_TO_CHECK} HAVE_${required_macro_definition}) # Append to the right list depending on whether definition was found. @@ -71,10 +72,10 @@ function(set_macro_definitions) if(MISSING_REQUIRED_MACROS) string(REPLACE ";" ", " MISSING_REQUIRED_MACROS "${MISSING_REQUIRED_MACROS}") message("Cannot build ${application_target} because the following required definitions are missing: ${MISSING_REQUIRED_MACROS}") - message("To run ${application_target}, define required macros in ${application_target}/demo_config.h.") + message("To run ${application_target}, define required macros in ${application_target}/demo_config.h.\n") set_target_properties(${application_target} PROPERTIES EXCLUDE_FROM_ALL true) else() - message("All required definitions for ${application_target} were found - Adding to default target.") + message("All required definitions for ${application_target} were found - Adding to default target.\n") endif() endforeach() endfunction()