mirror of https://github.com/grpc/grpc.git
[CMake] Link with librt only when platform toolchain has it (#34255)
Not all POSIX platforms have rt as a separate library. QNX has rt as part of libc (same as pthreads). Add condition to check if the library can be found and link with it only in positive scenario. A solution for: https://github.com/grpc/grpc/issues/34254pull/34837/head
parent
19ed52554f
commit
e256508e4b
2 changed files with 8 additions and 2 deletions
Loading…
Reference in new issue