]> 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 <azat@libevent.org>
Thu, 11 Jul 2019 21:02:12 +0000 (00:02 +0300)
commit55d1e20e1a5dbd1188f4143968f7cafee33edc0d
tree9ff977ec662500a6d62bab5d88efcff44aa28fc8
parent7806f3ec78368d69bfcf53cdffcdb424a528a113
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")
cmake/AddEventLibrary.cmake