diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 4fffe66220..cc807d43ed 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -44,7 +44,6 @@ set(MILVUS_VERSION "${GIT_BRANCH_NAME}") string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]" MILVUS_VERSION "${MILVUS_VERSION}") find_package(ClangTools) -set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(BUILD_SUPPORT_DIR "${CMAKE_SOURCE_DIR}/build-support") if(CMAKE_BUILD_TYPE STREQUAL "Release") @@ -57,6 +56,9 @@ message(STATUS "Build type = ${BUILD_TYPE}") project(milvus VERSION "${MILVUS_VERSION}") project(milvus_engine LANGUAGES CUDA CXX) +unset(CMAKE_EXPORT_COMPILE_COMMANDS CACHE) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + set(MILVUS_VERSION_MAJOR "${milvus_VERSION_MAJOR}") set(MILVUS_VERSION_MINOR "${milvus_VERSION_MINOR}") set(MILVUS_VERSION_PATCH "${milvus_VERSION_PATCH}") diff --git a/cpp/build-support/lint_exclusions.txt b/cpp/build-support/lint_exclusions.txt index 3ae6878c43..f08664a1a9 100644 --- a/cpp/build-support/lint_exclusions.txt +++ b/cpp/build-support/lint_exclusions.txt @@ -3,4 +3,5 @@ *cmake_build* *src/thirdparty* *src/core/thirdparty* -*src/grpc* \ No newline at end of file +*src/grpc* +*easylogging++* \ No newline at end of file diff --git a/cpp/build-support/run_cpplint.py b/cpp/build-support/run_cpplint.py index 2a33748279..98c4170858 100755 --- a/cpp/build-support/run_cpplint.py +++ b/cpp/build-support/run_cpplint.py @@ -84,7 +84,7 @@ if __name__ == "__main__": cmd = [ arguments.cpplint_binary, '--verbose=2', - '--linelength=90', + '--linelength=120', '--filter=' + ','.join(_filters) ] if (arguments.cpplint_binary.endswith('.py') and