Merge pull request #919 from ZoneMinder/librt
add check for gettime in librt, needed for building on pi
This commit is contained in:
commit
c01f21764c
|
@ -204,6 +204,16 @@ check_type_size("ucontext_t" HAVE_UCONTEXT_T)
|
||||||
|
|
||||||
# *** LIBRARY CHECKS ***
|
# *** LIBRARY CHECKS ***
|
||||||
|
|
||||||
|
if (UNIX)
|
||||||
|
include (CheckLibraryExists)
|
||||||
|
CHECK_LIBRARY_EXISTS(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME)
|
||||||
|
if(NOT HAVE_CLOCK_GETTIME)
|
||||||
|
message(FATAL_ERROR "clock_gettime not found")
|
||||||
|
else(NOT HAVE_CLOCK_GETTIME)
|
||||||
|
list(APPEND ZM_BIN_LIBS "-lrt")
|
||||||
|
endif(NOT HAVE_CLOCK_GETTIME)
|
||||||
|
endif(UNIX)
|
||||||
|
|
||||||
# zlib
|
# zlib
|
||||||
find_package(ZLIB)
|
find_package(ZLIB)
|
||||||
if(ZLIB_FOUND)
|
if(ZLIB_FOUND)
|
||||||
|
|
Loading…
Reference in New Issue