mirror of
https://github.com/ceph/ceph
synced 2025-04-08 02:31:44 +00:00
cmake: do not create gtest/gmock shared libraries
otherwise unit tests crash at exit. Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
375c09c21c
commit
ac47440174
@ -996,7 +996,12 @@ target_link_libraries(crushtool global)
|
|||||||
install(TARGETS crushtool DESTINATION bin)
|
install(TARGETS crushtool DESTINATION bin)
|
||||||
|
|
||||||
# Support/Tools
|
# Support/Tools
|
||||||
|
# the static gtest/gmock libraries load correctly for us
|
||||||
|
set(BUILD_SHARED_LIBS_saved ${BUILD_SHARED_LIBS})
|
||||||
|
set(BUILD_SHARED_LIBS OFF)
|
||||||
add_subdirectory(gmock)
|
add_subdirectory(gmock)
|
||||||
|
set(BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS_saved})
|
||||||
|
|
||||||
add_subdirectory(test)
|
add_subdirectory(test)
|
||||||
set(cephfs_srcs cephfs.cc)
|
set(cephfs_srcs cephfs.cc)
|
||||||
add_executable(cephfstool ${cephfs_srcs})
|
add_executable(cephfstool ${cephfs_srcs})
|
||||||
|
Loading…
Reference in New Issue
Block a user