Skip to content

Commit

Permalink
build: don't include_directories if find_package
Browse files Browse the repository at this point in the history
  • Loading branch information
liudongmiao committed Jun 23, 2024
1 parent 678e326 commit 3ca29d0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3ca29d0

Please sign in to comment.