From 3ca29d0948bae3797ed469245cc4aff53b29bec3 Mon Sep 17 00:00:00 2001 From: Liu Dongmiao Date: Sun, 23 Jun 2024 09:13:30 +0800 Subject: [PATCH] build: don't include_directories if find_package --- CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 918fb0a..7028802 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,7 +61,6 @@ find_package(OpenSSL 1.1.1) if (OPENSSL_FOUND) set(OPENSSL_SSL OpenSSL::SSL) set(OPENSSL_CRYPTO OpenSSL::Crypto) - include_directories(${OPENSSL_INCLUDE_DIR}) elseif (PkgConfig_FOUND) message("fallback to check openssl11") pkg_check_modules(OPENSSL openssl11) @@ -102,7 +101,6 @@ endif() if (NOT EVENT_CORE) find_package(Libevent 2.1 REQUIRED COMPONENTS core) set(EVENT_CORE libevent::core) - include_directories(${LIBEVENT_INCLUDE_DIRS}) endif() add_executable(wss-proxy-client wss-proxy-client.c ws-header.c common.c wss-client.c wss-client-http3.c)