Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: do not find bzip2/lz4 for rocksdb #19963

Merged
merged 1 commit into from Jan 22, 2018
Merged

Conversation

runsisi
Copy link
Contributor

@runsisi runsisi commented Jan 16, 2018

Rocksdb has compression disabled by default[1] and it's never been enabled[2], so do not link these compression libraries implicitly

[1] https://github.com/ceph/rocksdb/blob/master/CMakeLists.txt#L76
[2] https://github.com/ceph/ceph/blob/master/cmake/modules/BuildRocksDB.cmake

Signed-off-by: runsisi runsisi@zte.com.cn

@@ -12,13 +12,3 @@ add_library(kv STATIC $<TARGET_OBJECTS:kv_objs>)
target_include_directories(kv_objs SYSTEM BEFORE PUBLIC ${ROCKSDB_INCLUDE_DIR})
target_include_directories(kv SYSTEM BEFORE PUBLIC ${ROCKSDB_INCLUDE_DIR})
target_link_libraries(kv ${LEVELDB_LIBRARIES} ${ROCKSDB_LIBRARIES} ${ALLOC_LIBS} ${SNAPPY_LIBRARIES} ${ZLIB_LIBRARIES})

# rocksdb detects bzlib and lz4 in its Makefile, which forces us to do the same.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these changes were added to accommodate the Makefile of rocksdb which predates CMakefile of it.

@tchaikov
Copy link
Contributor

could you update the commit message with the rationale of this change?

RocksDB has compression disabled by default[1] and it's never been enabled[2],
so do not link these compression libraries implicitly

[1] https://github.com/ceph/rocksdb/blob/master/CMakeLists.txt#L76
[2] https://github.com/ceph/ceph/blob/master/cmake/modules/BuildRocksDB.cmake

Signed-off-by: runsisi <runsisi@zte.com.cn>
@runsisi
Copy link
Contributor Author

runsisi commented Jan 16, 2018

@tchaikov updated as you suggested, thx!

@tchaikov tchaikov merged commit d3785b4 into ceph:master Jan 22, 2018
@runsisi runsisi deleted the wip-cmake branch January 22, 2018 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants