cmake/LibeventConfig.cmake.in


Log

Author Commit Date CI Message
yuangongji 86eafc03 2020-05-01T09:51:29 cmake: set a default value for LIBEVENT_STATIC_LINK
Mario Emmenlauer 1675a556 2020-03-03T19:02:24 LibeventConfig.cmake: restore CMAKE_FIND_LIBRARY_SUFFIXES and LIBEVENT_STATIC_LINK default The current cmake/LibeventConfig.cmake.in has a few problems and I'm not sure how cleanly developed it is. It seems rater complex for the little things I would assume it needs to do. I found two problems that are fixed in this PR: - If the downstream user does not explicitly set LIBEVENT_STATIC_LINK before calling find_package(libevent) then they will not be able to detect the static library, even if its the only one that exists. Since this may be rather strict, I've changed the behavior so that LIBEVENT_STATIC_LINK can be set to ON or OFF, but if unset, it defaults to whatever configuration libevent was built as. - The other problem is a bug. The package configuration needs to unset CMAKE_FIND_LIBRARY_SUFFIXES after use, otherwise all packages that are detected after libevent will be "infected" by this setting. This was a significant problem for us, and is very hard to detect in downstream project, because the order of dependencies will lead to different search results.
yuangongji dc4be869 2019-11-07T18:26:47 cmake: improve package config file
Azat Khuzhin 7182c2f5 2017-03-12T23:31:59 cmake: build SHARED and STATIC libraries (like autoconf does) Since they are useful for debugging, and if autotools build them then cmamke has to do this too, to make migration more simple. And now: - tests: uses shared libraries (since this is upstreams one) - other binaries: uses static libraries This removes next private config: - EVENT__NEED_DLLIMPORT
Azat Khuzhin 72ef9d16 2016-11-07T00:46:45 cmake: add missing event_openssl/event_pthreads libraries This will remove openssl requirement if you don't use it (i.e. if you not link with openssl_pthreads). Plus it fixes some linking dependencies: - libm required only for test-ratelim And fix some coding style alignment issues. Refs: #246
Sergey Nikulov 27bd9faf 2014-09-02T18:25:52 updates in cmake build
Joakim Söderberg 2b41bcf8 2014-03-07T18:09:56 Export event_extra not event_extras.
Joakim Soderberg f3446ed5 2014-01-09T13:44:38 Add CMake config and install targets. Make it easier for other projects to do find_package by creating config files both in the build and install tree.