From 6c046ce606ee2de0027068e07768cbb2ca32aa12 Mon Sep 17 00:00:00 2001 From: helintongh Date: Thu, 19 Jan 2023 17:29:48 -0600 Subject: [PATCH] fix cmake error in minimize ubuntu 20.04 and vcpkg ci pipeline (#159) --- CMakeLists.txt | 3 +++ cmake/dependency.cmake | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 62d0cc90..64017c62 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,9 @@ project(yaLanTingLibs include_directories(include) +#the thread library of the system. +find_package(Threads REQUIRED) + include(cmake/utils.cmake) include(cmake/struct_pb.cmake) include(cmake/build.cmake) diff --git a/cmake/dependency.cmake b/cmake/dependency.cmake index cc26108a..4ff62733 100644 --- a/cmake/dependency.cmake +++ b/cmake/dependency.cmake @@ -1,6 +1,3 @@ -#the thread library of the system. -find_package(Threads REQUIRED) - # 3rd-party package load option(USE_CONAN "Use conan package manager" OFF) if(USE_CONAN)