diff options
author | Rider Linden <none@none> | 2015-04-30 14:06:03 -0700 |
---|---|---|
committer | Rider Linden <none@none> | 2015-04-30 14:06:03 -0700 |
commit | cc26fb5b24c0276e01c66d0eb6c695831809ad69 (patch) | |
tree | ba841ca91ed4ff7699a89753174ccb6a29a94940 /indra/linux_crash_logger | |
parent | f577f7164142769ae9c45e6d734dfbf60ff3ba3c (diff) |
Add LIBRT to libraries in linux crash logger.
Diffstat (limited to 'indra/linux_crash_logger')
-rwxr-xr-x | indra/linux_crash_logger/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/linux_crash_logger/CMakeLists.txt b/indra/linux_crash_logger/CMakeLists.txt index 3253c79ed3..67b3ed109a 100755 --- a/indra/linux_crash_logger/CMakeLists.txt +++ b/indra/linux_crash_logger/CMakeLists.txt @@ -56,6 +56,14 @@ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed") add_executable(linux-crash-logger ${linux_crash_logger_SOURCE_FILES}) +if (LINUX) + # llcommon uses `clock_gettime' which is provided by librt on linux. + set(LIBRT_LIBRARY + rt + ) +endif (LINUX) + + target_link_libraries(linux-crash-logger ${LLCRASHLOGGER_LIBRARIES} ${LLVFS_LIBRARIES} @@ -65,6 +73,7 @@ target_link_libraries(linux-crash-logger ${LLMATH_LIBRARIES} ${LLCOREHTTP_LIBRARIES} ${LLCOMMON_LIBRARIES} + ${LIBRT_LIBRARY} ${BOOST_CONTEXT_LIBRARY} ${BOOST_COROUTINE_LIBRARY} ${UI_LIBRARIES} |