CMake: Don't go on about "custom files"

For each call of add_custom_cmake_include() CMake prints
STATUS "No custom file found in <full_path>".

This is noisy, not to mention confusing.

Print output only if a custom include is found, be silent otherwise.

Change-Id: If603d206486354993ebac8e4c61f6876a26223d3
Reviewed-on: https://code.wireshark.org/review/31517
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
João Valverde 2019-01-12 21:39:38 +00:00 committed by Anders Broman
parent 651a146667
commit 833bd45812
1 changed files with 1 additions and 3 deletions

View File

@ -11,10 +11,8 @@ macro( ADD_CUSTOM_CMAKE_INCLUDE )
foreach (_include ${_file_list})
set( _include_file ${CMAKE_CURRENT_SOURCE_DIR}/${_include} )
if( EXISTS ${_include_file} )
message ( STATUS "Including ${_include_file}" )
message ( STATUS "Custom file found, including: ${_include_file}" )
include( ${_include_file} )
else()
message ( STATUS "No custom file found in ${CMAKE_CURRENT_SOURCE_DIR}" )
endif()
endforeach()
endmacro()