diff options
author | yuangongji <yuangongji@foxmail.com> | 2020-05-01 09:51:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 09:51:29 +0800 |
commit | 86eafc03433cb5719e5b75ff99ffab8633433a17 (patch) | |
tree | e26046b940ad7d553f9f61ad4dca4809a196d688 /cmake/LibeventConfig.cmake.in | |
parent | f0b3160f8ce7fbd411493dcd023f562f4f9d17ee (diff) | |
download | libevent-86eafc03433cb5719e5b75ff99ffab8633433a17.tar.gz |
cmake: set a default value for LIBEVENT_STATIC_LINK
Diffstat (limited to 'cmake/LibeventConfig.cmake.in')
-rw-r--r-- | cmake/LibeventConfig.cmake.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/LibeventConfig.cmake.in b/cmake/LibeventConfig.cmake.in index aeeff9aa..7b808c32 100644 --- a/cmake/LibeventConfig.cmake.in +++ b/cmake/LibeventConfig.cmake.in @@ -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}") |