From 5051ddd92b5bd964118d80afd5495f146dbeac11 Mon Sep 17 00:00:00 2001 From: Lantianyou Date: Sat, 5 Aug 2023 00:23:45 +0800 Subject: [PATCH 1/2] feat: gen command guide for clangd --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d788dc1b..01b782f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.16) project(kuiper_infer) set(CMAKE_CXX_STANDARD 17) include_directories(./include) +set(CMAKE_TOOLCHAIN_FILE ${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake) +set(PROJECT_ROOT ${CMAKE_CURRENT_SOURCE_DIR}) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) if (MSVC) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) # 假如编译x64,那么SSE2永远可用 From 0fbf4eb2169546dcd7f52c6901422ce165d28cfa Mon Sep 17 00:00:00 2001 From: Lantianyou Date: Sat, 5 Aug 2023 00:25:44 +0800 Subject: [PATCH 2/2] feat: remove vcpkg --- CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 01b782f0..9b2f8521 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,6 @@ cmake_minimum_required(VERSION 3.16) project(kuiper_infer) set(CMAKE_CXX_STANDARD 17) include_directories(./include) -set(CMAKE_TOOLCHAIN_FILE ${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake) set(PROJECT_ROOT ${CMAKE_CURRENT_SOURCE_DIR}) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) if (MSVC)