Skip to content

Commit

Permalink
Correct header name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Hague committed Oct 29, 2019
1 parent c359a0b commit 3604add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/FindLibevent2.cmake
Expand Up @@ -52,7 +52,7 @@ if (LIBEVENT2_INCLUDE_DIR AND LIBEVENT2_LIBRARY)
)
endif ()

if (NOT LIBEVENT2_VERSION AND LIBEVENT2_INCLUDE_DIR AND EXISTS "${LIBEVENT2_INCLUDE_DIR}/unbound.h")
if (NOT LIBEVENT2_VERSION AND LIBEVENT2_INCLUDE_DIR AND EXISTS "${LIBEVENT2_INCLUDE_DIR}/event2/event.h")
file(STRINGS "${LIBEVENT2_INCLUDE_DIR}/event2/event-config.h" LIBEVENT2_H REGEX "^#define _?EVENT_+VERSION ")
string(REGEX REPLACE "^.*EVENT_+VERSION \"([^\"]+)\".*$" "\\1" LIBEVENT2_VERSION "${LIBEVENT2_H}")
endif ()
Expand Down

0 comments on commit 3604add

Please sign in to comment.