From 833bd4581233fe319453d69df6fa879fe723c892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Sat, 12 Jan 2019 21:39:38 +0000 Subject: [PATCH] CMake: Don't go on about "custom files" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For each call of add_custom_cmake_include() CMake prints STATUS "No custom file found in ". 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 Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- cmake/modules/UseCustomIncludes.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmake/modules/UseCustomIncludes.cmake b/cmake/modules/UseCustomIncludes.cmake index 15e93f7043..be01303e14 100644 --- a/cmake/modules/UseCustomIncludes.cmake +++ b/cmake/modules/UseCustomIncludes.cmake @@ -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()