mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-04 01:36:23 -04:00
cmake: set a default value for LIBEVENT_STATIC_LINK
(cherry picked from commit 86eafc03433cb5719e5b75ff99ffab8633433a17)
This commit is contained in:
parent
a821914368
commit
a6974d1132
@ -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}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user