Skip to content

Commit

Permalink
Merge pull request #45272 from petrutlucian94/build_fix
Browse files Browse the repository at this point in the history
Fix Windows build
  • Loading branch information
David Galloway committed Mar 9, 2022
2 parents 791ea7e + c11455f commit 6917edc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/CMakeLists.txt
Expand Up @@ -526,7 +526,14 @@ add_library(common STATIC ${ceph_common_objs})
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)
Expand Down
1 change: 1 addition & 0 deletions src/include/win32/dlfcn.h
@@ -0,0 +1 @@
#include "../dlfcn_compat.h"

0 comments on commit 6917edc

Please sign in to comment.