Skip to content

Commit

Permalink
compile: add rt as system library dependency as some Linux distro nee…
Browse files Browse the repository at this point in the history
…ds it (#10)
  • Loading branch information
shengofsun committed Aug 8, 2018
1 parent db64faa commit 6309d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ if(WIN32)
set(SYSTEM_LIBS ${SYSTEM_LIBS} Shlwapi.lib Rpcrt4.lib)
set(LIBS ${ROCKSDB_STATIC_LIB} ${THIRDPARTY_LIBS} ${SYSTEM_LIBS})
else()
set(SYSTEM_LIBS ${CMAKE_THREAD_LIBS_INIT})
set(SYSTEM_LIBS ${CMAKE_THREAD_LIBS_INIT} rt)
set(LIBS ${ROCKSDB_STATIC_LIB} ${THIRDPARTY_LIBS} ${SYSTEM_LIBS})

# add_library(${ROCKSDB_SHARED_LIB} SHARED ${SOURCES})
Expand Down

0 comments on commit 6309d37

Please sign in to comment.