Merge pull request #140 from jserv/fix-rt-linkage

Link with -lrt for older glibc
This commit is contained in:
Daan 2019-08-27 09:56:59 -07:00 committed by GitHub
commit 1b9c68667b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,6 +108,10 @@ if(WIN32)
list(APPEND mi_libraries psapi shell32 user32)
else()
list(APPEND mi_libraries pthread)
find_library(LIBRT rt)
if(LIBRT)
list(APPEND mi_libraries ${LIBRT})
endif()
endif()
# -----------------------------------------------------------------------------