Improve build.

This commit is contained in:
fancy 2023-11-25 19:19:30 -08:00
parent 65e7988002
commit f989e8fe2d

View File

@ -32,8 +32,12 @@ if ("${CLANG_TIDY_SUPPORT}" MATCHES "true")
else() else()
# message(FATAL_ERROR "See ${CMAKE_SOURCE_DIR_IPCSDK}/doc.") # message(FATAL_ERROR "See ${CMAKE_SOURCE_DIR_IPCSDK}/doc.")
message(FATAL_ERROR "You set support clang-tidy, but clang-tidy not found. 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 Check path ${LLVM_PATH}/build/bin, weather clang-tidy exist.
Or modify: set(CLANG_TIDY_SUPPORT \"false\") to diable this function in file:${IPC_SDK_PATH}/builde/global_config.cmake") 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()
endif() endif()
# find the clang-format tools # 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) set(CLANG_FORMAT_EXE ${CLANG_FORMAT_FIND} CACHE STRING INTERNAL)
message("CLANG_FORMAT_EXE = ${CLANG_FORMAT_EXE}") message("CLANG_FORMAT_EXE = ${CLANG_FORMAT_EXE}")
else() 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()
endif() endif()