]> granicus.if.org Git - libevent/commit
cmake: use APPEND during exporting targets (for old cmake)
authorAzat Khuzhin <a3at.mail@gmail.com>
Tue, 14 Mar 2017 10:33:31 +0000 (13:33 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sat, 2 Feb 2019 12:13:50 +0000 (15:13 +0300)
commit5398cbcdedc08dd0c61c1dfd56e69b74b5398e77
tree10c5d326ea1ae37cac853cbd1b8b83d77e9e74dc
parentebd12e6de7b4f8bf93383192b2477a06a4b35238
cmake: use APPEND during exporting targets (for old cmake)

On centos with cmake 2.8.12.2:
  CMake Error at cmake/AddEventLibrary.cmake:92 (export):
    export called with target "event_extra_shared" which requires target
    "event_core_shared" that is not in the export list.

    If the required target is not easy to reference in this call, consider
    using the APPEND option with multiple separate calls.

But on newer cmake I guess everything is ok.

Fixes: 7182c2f561570cd9ceb704623ebe9ae3608c7b43 ("cmake: build SHARED
and STATIC libraries (like autoconf does)")

(cherry picked from commit b1e8a4138f0da3c8a4bc303ff72b620b41c066d6)
cmake/AddEventLibrary.cmake