Some systems (e.g. glibc < 2.17) require librt to get clock_gettime -> CMAKE

This commit is contained in:
Philippe Teuwen 2017-03-02 23:42:36 +01:00
parent 2d2a664f6c
commit b65674a8e3
2 changed files with 20 additions and 0 deletions

View file

@ -79,6 +79,10 @@ IF(LIBUSB_FOUND)
TARGET_LINK_LIBRARIES(nfc ${LIBUSB_LIBRARIES})
ENDIF(LIBUSB_FOUND)
IF(LIBRT_FOUND)
TARGET_LINK_LIBRARIES(nfc ${LIBRT_LIBRARIES})
ENDIF(LIBRT_FOUND)
SET_TARGET_PROPERTIES(nfc PROPERTIES SOVERSION 5 VERSION 5.0.1)
IF(WIN32)