Skip to content

Commit

Permalink
find_library(rt) (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukect authored Sep 9, 2024
1 parent b7928e9 commit 06372ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ if(ANDROID)
set(LIBS ${LIBS} log)
elseif(UNIX AND NOT MINGW)
set(LIBS ${LIBS} pthread m dl)
if(CMAKE_COMPILER_IS_GNUCC)
find_library(RT_LIBRARY rt)
if(RT_LIBRARY)
set(LIBS ${LIBS} rt)
endif()
endif()
Expand Down

0 comments on commit 06372ab

Please sign in to comment.