Skip to content

Commit

Permalink
cmake: set a default value for LIBEVENT_STATIC_LINK
Browse files Browse the repository at this point in the history
  • Loading branch information
ygj6 committed May 1, 2020
1 parent f0b3160 commit 86eafc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/LibeventConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ set(LIBEVENT_SHARED_LIBRARIES "@LIBEVENT_SHARED_LIBRARIES@")

# Default to the same type as libevent was built:
if(NOT DEFINED LIBEVENT_STATIC_LINK)
set(LIBEVENT_STATIC_LINK NOT @BUILD_SHARED_LIBS@)
set(LIBEVENT_STATIC_LINK NOT @EVENT_LIBRARY_SHARED@)
endif()

set(CMAKE_FIND_LIBRARY_SUFFIXES_SAVE "${CMAKE_FIND_LIBRARY_SUFFIXES}")
if(LIBEVENT_STATIC_LINK)
if(${LIBEVENT_STATIC_LINK})
set(_LIB_TYPE static)
set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_STATIC_LIBRARY_SUFFIX})
set(_AVAILABLE_LIBS "${LIBEVENT_STATIC_LIBRARIES}")
Expand Down

0 comments on commit 86eafc0

Please sign in to comment.