]> granicus.if.org Git - libevent/commit
cmake: install shared library only if it was requested
authorAzat Khuzhin <azat@libevent.org>
Thu, 11 Jul 2019 21:00:12 +0000 (00:00 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Thu, 1 Aug 2019 21:08:41 +0000 (00:08 +0300)
commit596855f7af6dc1b6e3432e0188897ac581269821
treef0f19fadb4604374caf4677b85e429063e8f0b27
parent9559349cbc0bcb39e31333bc7913feddd79d8eae
cmake: install shared library only if it was requested

  $ cmake -DEVENT__LIBRARY_TYPE=static ..
  ...
  CMake Error:
  Error evaluating generator expression:

    $<TARGET_FILE_DIR:event_core_shared>

  No target "event_core_shared"

Fixes: #853
Fixes: 669a53f3 ("cmake: set library names to be the same as with autotools")
(cherry picked from commit 55d1e20e1a5dbd1188f4143968f7cafee33edc0d)
cmake/AddEventLibrary.cmake