From 1c0bc5dad4a56723ae1268a774f000153f97f3b8 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 10 Dec 2019 11:03:13 +0800 Subject: [PATCH] cmake: silence messages when cppcheck/IWYU is not found * remove messages spit when these tools are not found they are not necessary for building Ceph. and the messages in the cmake output are distracting. * fix a typo Signed-off-by: Kefu Chai --- cmake/modules/FindCppCheck.cmake | 2 -- cmake/modules/FindIWYU.cmake | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/cmake/modules/FindCppCheck.cmake b/cmake/modules/FindCppCheck.cmake index 5dabfa66aadc7..0ee701c0a2aa8 100644 --- a/cmake/modules/FindCppCheck.cmake +++ b/cmake/modules/FindCppCheck.cmake @@ -25,6 +25,4 @@ if(CPPCHECK_BIN) ) message(STATUS "Found cppcheck. To perform static analysis using cppcheck, use: \"make cppcheck\". Results will be stored in \"cppcheck.txt\".") -else() - message(STATUS "Could not find cppcheck. To perform static analysis using cppcheck install the tool (e.g. \"yum install cppcheck\").") endif() diff --git a/cmake/modules/FindIWYU.cmake b/cmake/modules/FindIWYU.cmake index adbdbb25a9572..83bfd415a7ed2 100644 --- a/cmake/modules/FindIWYU.cmake +++ b/cmake/modules/FindIWYU.cmake @@ -9,7 +9,7 @@ if(IWYU_BIN) endif() if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - message(STATUS "Found IWYU, but clang++ is not used used. To enable IWYU, set CMAKE_C_COMPILER to \"clang\" and CMAKE_CXX_COMPILER to \"clang++\" and build again.") + message(STATUS "Found IWYU, but clang++ is not used. To enable IWYU, set CMAKE_C_COMPILER to \"clang\" and CMAKE_CXX_COMPILER to \"clang++\" and build again.") return() endif() @@ -22,6 +22,4 @@ if(IWYU_BIN) ) message(STATUS "Found IWYU. To perform header analysis using IWYU, use: \"make iwyu\". Results will be stored in \"iwyu.txt\".") -else() - message(STATUS "Could not find IWYU. To perform header analysis using IWYU install the tool (e.g. \"yum install iwyu\").") endif() -- 2.39.5