1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Purpose: Add SOVERSION to shared object
Forward: https://github.com/facebookincubator/gloo/issues/116
--- a/gloo/CMakeLists.txt
+++ b/gloo/CMakeLists.txt
@@ -134,6 +134,7 @@
configure_file(config.h.in config.h)
add_library(gloo ${GLOO_STATIC_OR_SHARED} ${GLOO_SRCS})
+set_target_properties(gloo PROPERTIES VERSION ${GLOO_VERSION} SOVERSION ${GLOO_VERSION_MAJOR})
if(USE_CUDA)
cuda_add_library(gloo_cuda ${GLOO_CUDA_SRCS} ${GLOO_STATIC_OR_SHARED})
target_link_libraries(gloo_cuda gloo ${gloo_cuda_DEPENDENCY_LIBS})
--- a/gloo/test/CMakeLists.txt
+++ b/gloo/test/CMakeLists.txt
@@ -25,7 +25,7 @@
endif()
add_executable(gloo_test ${GLOO_TEST_SRCS})
-target_link_libraries(gloo_test gloo gtest ${GLOO_TEST_LIBRARIES})
+target_link_libraries(gloo_test gloo gtest ${GLOO_TEST_LIBRARIES} pthread)
if(MSVC AND USE_LIBUV)
add_custom_command(TARGET gloo_test POST_BUILD
|