mirror of
https://github.com/ceph/ceph
synced 2025-03-05 15:58:41 +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)
|
||||
|
||||
# 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)
|
||||
set(BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS_saved})
|
||||
|
||||
add_subdirectory(test)
|
||||
set(cephfs_srcs cephfs.cc)
|
||||
add_executable(cephfstool ${cephfs_srcs})
|
||||
|
Loading…
Reference in New Issue
Block a user