Suppress logging if failed to find Crc32c, Readline or Git.

This commit is contained in:
levlam 2023-10-15 00:23:01 +03:00
parent ebd77d5152
commit 91b57ccceb
3 changed files with 4 additions and 6 deletions

View File

@ -71,7 +71,7 @@ function(get_git_head_revision _refspecvar _hashvar)
return()
endif()
find_package(Git)
find_package(Git QUIET)
# Check if the current source dir is a git submodule or a worktree.
# In both cases .git is a file instead of a directory.

View File

@ -1051,11 +1051,9 @@ if (NOT CMAKE_CROSSCOMPILING)
add_executable(tg_cli td/telegram/cli.cpp ${TL_TD_JSON_SOURCE})
if (NOT READLINE_FOUND)
find_package(Readline)
find_package(Readline QUIET)
endif()
if (NOT READLINE_FOUND)
message(STATUS "Could NOT find Readline (this is NOT an error)")
else()
if (READLINE_FOUND)
message(STATUS "Found Readline: ${READLINE_INCLUDE_DIR} ${READLINE_LIBRARY}")
if (NOT USABLE_READLINE_FOUND)
set(CMAKE_REQUIRED_INCLUDES "${READLINE_INCLUDE_DIR}")

View File

@ -25,7 +25,7 @@ if (ZLIB_FOUND)
endif()
if (NOT CRC32C_FOUND)
find_package(Crc32c)
find_package(Crc32c QUIET)
endif()
if (CRC32C_FOUND)
set(TD_HAVE_CRC32C 1)