From 306b7c57ca587d249beffbbde42652a28f96f26e Mon Sep 17 00:00:00 2001 From: MistEO Date: Sat, 18 Jun 2022 03:54:52 +0800 Subject: [PATCH] chore: fixed cmake error fix #912 --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3cb40613e2..b723f42825 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,7 @@ if (WIN32) set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd") -endif() +endif () add_compile_options("$<$:/W4;/WX>") add_compile_options("$<$>:-Wall;-Wextra;-Wpedantic;-Werror>") @@ -31,6 +31,7 @@ find_library(PaddleOCR_LIB NAMES ppocr PATHS 3rdparty/lib) if (WIN32) find_library(OpenCV NAMES opencv_world453 PATHS 3rdparty/lib) find_library(ZLIB NAMES zlibstatic PATHS 3rdparty/lib) + target_link_libraries(MeoAssistant ws2_32) else () find_package(OpenCV REQUIRED) find_package(ZLIB REQUIRED)