Skip to content

Commit 06372ab

Browse files
authored
find_library(rt) (#620)
1 parent b7928e9 commit 06372ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ if(ANDROID)
169169
set(LIBS ${LIBS} log)
170170
elseif(UNIX AND NOT MINGW)
171171
set(LIBS ${LIBS} pthread m dl)
172-
if(CMAKE_COMPILER_IS_GNUCC)
172+
find_library(RT_LIBRARY rt)
173+
if(RT_LIBRARY)
173174
set(LIBS ${LIBS} rt)
174175
endif()
175176
endif()

0 commit comments

Comments
 (0)