]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: silence messages when cppcheck/IWYU is not found 32140/head
authorKefu Chai <kchai@redhat.com>
Tue, 10 Dec 2019 03:03:13 +0000 (11:03 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 10 Dec 2019 03:08:02 +0000 (11:08 +0800)
* 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 <kchai@redhat.com>
cmake/modules/FindCppCheck.cmake
cmake/modules/FindIWYU.cmake

index 5dabfa66aadc752d56de7ee463d68441a931e07a..0ee701c0a2aa8c7f828f4e33bc5151f6761e32f1 100644 (file)
@@ -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()
index adbdbb25a95721528cfb61c815d300401694a403..83bfd415a7ed204a05bf190e368ff3340699437e 100644 (file)
@@ -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()