mirror of
https://github.com/Silicondust/libhdhomerun
synced 2025-08-21 05:53:29 -07:00
Update CMakeLists.txt
This commit is contained in:
parent
5965957050
commit
838534f441
1 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 2.8)
|
|||
|
||||
project(hdhomerun)
|
||||
|
||||
include(CheckLibraryExists)
|
||||
|
||||
set(SOURCES
|
||||
hdhomerun_channels.c
|
||||
hdhomerun_channelscan.c
|
||||
|
@ -41,7 +43,8 @@ if(WIN32)
|
|||
list(APPEND DEPLIBS ws2_32 iphlpapi)
|
||||
elsif()
|
||||
list(APPEND DEPLIBS pthread)
|
||||
if (UNIX)
|
||||
check_library_exists(rt clock_gettime "" HAS_LIBRT)
|
||||
if (HAS_LIBRT)
|
||||
list(APPEND DEPLIBS rt)
|
||||
endif()
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue