This commit is contained in:
1 parent
a209573086
commit
ca52d5fda9
1 file changed
+6
@@ -16,9 +16,15 @@ if(PROJECT_ENABLE_ROCKSDB)
|
||||
set(ROCKSDB_ZLIB_LIBRARY ${ZLIB_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if(PROJECT_IS_DARWIN)
|
||||
# Apple ld does not support --start-group/--end-group; it resolves
|
||||
# static archive symbols regardless of order.
|
||||
link_libraries(${ROCKSDB_LIBRARY} ${ROCKSDB_ZLIB_LIBRARY})
|
||||
else()
|
||||
link_libraries(
|
||||
"-Wl,--start-group,${ROCKSDB_LIBRARY},${ROCKSDB_ZLIB_LIBRARY},--end-group"
|
||||
)
|
||||
endif()
|
||||
elseif(NOT PROJECT_IS_MINGW OR CMAKE_HOST_WIN32)
|
||||
ExternalProject_Add(rocksdb_project
|
||||
PREFIX external
|
||||
|
||||
Reference in new issue
Block a user