From f989e8fe2d593f7758b081aac4ea232326028652 Mon Sep 17 00:00:00 2001 From: fancy <258828110.@qq.com> Date: Sat, 25 Nov 2023 19:19:30 -0800 Subject: [PATCH] Improve build. --- CMakeLists.txt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c0a1d93..207638f 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,8 +32,12 @@ if ("${CLANG_TIDY_SUPPORT}" MATCHES "true") else() # message(FATAL_ERROR "See ${CMAKE_SOURCE_DIR_IPCSDK}/doc.") message(FATAL_ERROR "You set support clang-tidy, but clang-tidy not found. -See file to install tools: ${IPC_SDK_PATH}/doc/clang-tidy_user_guide.md -Or modify: set(CLANG_TIDY_SUPPORT \"false\") to diable this function in file:${IPC_SDK_PATH}/builde/global_config.cmake") +Check path ${LLVM_PATH}/build/bin, weather clang-tidy exist. +How to install tools? +See ${IPC_SDK_PATH}/doc/clang-tidy_user_guide.md +How to disable clang-tidy tool? +Modify: set(CLANG_TIDY_SUPPORT \"false\") +See:${IPC_SDK_PATH}/builde/global_config.cmake") endif() endif() # find the clang-format tools @@ -46,7 +50,13 @@ if ("${CLANG_FORMAT_SUPPORT}" MATCHES "true") set(CLANG_FORMAT_EXE ${CLANG_FORMAT_FIND} CACHE STRING INTERNAL) message("CLANG_FORMAT_EXE = ${CLANG_FORMAT_EXE}") else() - message(FATAL_ERROR "You set support clang-format, bug clang-format not found.") + message(FATAL_ERROR "You set support clang-format, but clang-format not found. +Check path ${LLVM_PATH}/build/bin, weather clang-format exist. +How to install tools? +See ${IPC_SDK_PATH}/doc/clang-tidy_user_guide.md +How to disable clang-format tool? +Modify: set(CLANG_FORMAT_SUPPORT \"false\") +See:${IPC_SDK_PATH}/builde/global_config.cmake") endif() endif()