A recent commit [1] changed the way in which libceph-common is built.
Previously, it was always built statically but now it uses the
"CEPH_SHARED" flag.
Static Windows builds are now failing. For now, we'll just revert the
previous behavior and always build libceph-common dinamically on
Windows.
[1]
22fefb2338cfc4fcb03ece3cbf77aa964a7f17f2
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
target_link_libraries(common ${ceph_common_deps})
add_dependencies(common legacy-option-headers ${jaeger_base})
-add_library(ceph-common ${CEPH_SHARED} ${ceph_common_objs})
+if (WIN32)
+ # Statically building ceph-common on Windows fails. We're temporarily
+ # reverting this: 22fefb2338cfc4fcb03ece3cbf77aa964a7f17f2
+ add_library(ceph-common SHARED ${ceph_common_objs})
+else()
+ add_library(ceph-common ${CEPH_SHARED} ${ceph_common_objs})
+endif()
+
target_link_libraries(ceph-common ${ceph_common_deps})
if(ENABLE_COVERAGE)
target_link_libraries(ceph-common gcov)