Skip to content

Commit

Permalink
[=] delete duplicated macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Kulsk committed Nov 1, 2023
1 parent 0c07298 commit 0f57440
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmake/FindLibEvent.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ find_path (LIBEVENT_INCLUDE_DIR NAMES event.h)

# find dynamic library
find_library (LIBEVENT_LIBRARY NAMES event)
find_library (LIBEVENT_SSL NAMES event_openssl)
find_library (LIBEVENT_CORE NAMES event_core)
find_library (LIBEVENT_EXTRA NAMES event_extra)
find_library (LIBEVENT_THREAD NAMES event_pthreads)

# find version
if(LIBEVENT_INCLUDE_DIR)
Expand All @@ -24,8 +28,7 @@ set (LIBEVENT_LIBRARIES
${LIBEVENT_SSL}
${LIBEVENT_CORE}
${LIBEVENT_EXTRA}
${LIBEVENT_THREAD}
${LIBEVENT_EXTRA})
${LIBEVENT_THREAD})

find_package_handle_standard_args(LibEvent
REQUIRED_VARS
Expand Down

0 comments on commit 0f57440

Please sign in to comment.