Skip to content

Commit

Permalink
Make logging less verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
yourslab committed Mar 18, 2021
1 parent 5e5ece5 commit f8deea8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/cmake/utility.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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()
Expand Down

0 comments on commit f8deea8

Please sign in to comment.