diff --git a/CMakeLists.txt b/CMakeLists.txt index d500dc7..6fba044 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,8 +39,11 @@ endif() if(WIN32) list(APPEND DEPLIBS ws2_32 iphlpapi) -elsif (${UNIX}) - list(APPEND DEPLIBS pthread rt) +elsif() + list(APPEND DEPLIBS pthread) + if (UNIX) + list(APPEND DEPLIBS rt) + endif() endif() if(MSVC)