Explicitly call out the RT library for tests in Linux

master
Rider Linden 2015-04-02 16:26:08 -07:00
parent bd69aa7be2
commit d1db144080
1 changed files with 8 additions and 0 deletions

View File

@ -2328,8 +2328,16 @@ if (LL_TESTS)
"${CMAKE_SOURCE_DIR}/llmessage/tests/test_llsdmessage_peer.py"
)
if (LINUX)
# llcommon uses `clock_gettime' which is provided by librt on linux.
set(LIBRT_LIBRARY
rt
)
endif (LINUX)
set(test_libs
${WINDOWS_LIBRARIES}
${LIBRT_LIBRARY}
${LLVFS_LIBRARIES}
${LLMATH_LIBRARIES}
${LLCOMMON_LIBRARIES}