diff --git a/CMakeLists.txt b/CMakeLists.txt index 2bb42d3..e6f147a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,8 +34,8 @@ if (HAVE_SSL_CTX_SET_KEYLOG_CALLBACK) endif() unset(CMAKE_REQUIRED_LIBRARIES) -find_package(LIBEVENT 2.1.1 QUIET COMPONENTS core extra openssl) -if (LIBEVENT_FOUND) +find_package(Libevent 2.1.1 COMPONENTS core extra openssl) +if (Libevent_FOUND) set(EVENT_CORE libevent::core) set(EVENT_EXTRA libevent::extra) set(EVENT_OPENSSL libevent::openssl)