summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRider Linden <none@none>2015-04-02 14:48:20 -0700
committerRider Linden <none@none>2015-04-02 14:48:20 -0700
commita3be08057c6a5b424e49c85a21d42ff8fe806815 (patch)
tree3927f7109d26e84aa68afae30e46c97821899c97
parente981588845512163bc4efea2bb0ec175d416ae9d (diff)
Explicitly include LIBRT
-rwxr-xr-xindra/llmessage/CMakeLists.txt13
1 files changed, 12 insertions, 1 deletions
diff --git a/indra/llmessage/CMakeLists.txt b/indra/llmessage/CMakeLists.txt
index 66b710b2f3..ce324cabaa 100755
--- a/indra/llmessage/CMakeLists.txt
+++ b/indra/llmessage/CMakeLists.txt
@@ -243,7 +243,17 @@ if (LL_TESTS)
)
LL_ADD_PROJECT_UNIT_TESTS(llmessage "${llmessage_TEST_SOURCE_FILES}")
+
# set(TEST_DEBUG on)
+if (LINUX)
+ # llcommon uses `clock_gettime' which is provided by librt on linux.
+ set(LIBRT_LIBRARY
+ rt
+ )
+#else
+ set (LIBRT_LIBRARY )
+endif (LINUX)
+
set(test_libs
${WINDOWS_LIBRARIES}
${LLVFS_LIBRARIES}
@@ -252,9 +262,10 @@ if (LL_TESTS)
${LLCOMMON_LIBRARIES}
${LLMESSAGE_LIBRARIES}
${LLCOREHTTP_LIBRARIES}
+ ${LIBRT_LIBRARY}
${BOOST_CONTEXT_LIBRARY}
${BOOST_COROUTINE_LIBRARY}
- ${GOOGLEMOCK_LIBRARIES}
+ ${GOOGLEMOCK_LIBRARIES}
)
LL_ADD_INTEGRATION_TEST(