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)