Skip to content

Commit

Permalink
Fix librt being linked unnecessarily
Browse files Browse the repository at this point in the history
clock_gettime does not need librt on many platforms, except Linux.
The commit makes librt only linked on Linux, solving #83.
  • Loading branch information
lrw04 authored and DaanDeMeyer committed Jul 16, 2022
1 parent 5299263 commit 08675b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reproc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
if(WIN32)
set(REPROC_WINSOCK_LIBRARY ws2_32)
elseif(NOT APPLE)
elseif(CMAKE_SYSTEM_NAME MATCHES Linux)
set(REPROC_RT_LIBRARY rt) # clock_gettime
endif()

Expand Down

0 comments on commit 08675b1

Please sign in to comment.