From d1db1440802fdd435c58f64ebb0060cab971b16b Mon Sep 17 00:00:00 2001 From: Rider Linden Date: Thu, 2 Apr 2015 16:26:08 -0700 Subject: Explicitly call out the RT library for tests in Linux --- indra/newview/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'indra') diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index 7a6bf0a5bf..4fb3537eec 100755 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -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} -- cgit v1.2.3