From: Kefu Chai Date: Tue, 10 Dec 2019 03:03:13 +0000 (+0800) Subject: cmake: silence messages when cppcheck/IWYU is not found X-Git-Tag: v15.1.0~575^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F32140%2Fhead;p=ceph.git 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 --- 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()