diff options
| author | levlam <levlam@telegram.org> | 2023-10-15 00:23:01 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2023-10-15 00:23:01 +0300 |
| commit | 91b57ccceb735d01c27b431ec07a8c34a475116a (patch) | |
| tree | 3873b24469b13ee59ef9eeac89d7a0a0d242b31a | |
| parent | ebd77d51524742886d3f7930357aeb8aaab1474a (diff) | |
Suppress logging if failed to find Crc32c, Readline or Git.
| -rw-r--r-- | CMake/GetGitRevisionDescription.cmake | 2 | ||||
| -rw-r--r-- | CMakeLists.txt | 6 | ||||
| -rw-r--r-- | tdutils/CMakeLists.txt | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/CMake/GetGitRevisionDescription.cmake b/CMake/GetGitRevisionDescription.cmake index 420772966..724d07821 100644 --- a/CMake/GetGitRevisionDescription.cmake +++ b/CMake/GetGitRevisionDescription.cmake @@ -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. diff --git a/CMakeLists.txt b/CMakeLists.txt index cfc751958..a888dafa5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}") diff --git a/tdutils/CMakeLists.txt b/tdutils/CMakeLists.txt index b06c5c9e6..54f363e57 100644 --- a/tdutils/CMakeLists.txt +++ b/tdutils/CMakeLists.txt @@ -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) |
