Skip to content

Commit

Permalink
cmake: dont depend on cython_rbd if WITH_RBD=OFF
Browse files Browse the repository at this point in the history
Signed-off-by: Casey Bodley <[email protected]>
  • Loading branch information
cbodley committed Nov 21, 2018
1 parent 035e872 commit 96d73b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -739,9 +739,10 @@ add_custom_target(vstart-base DEPENDS
rados
cython${PY_BINDING_INFIX}_rados)

add_custom_target(vstart DEPENDS
vstart-base
cython${PY_BINDING_INFIX}_rbd)
add_custom_target(vstart DEPENDS vstart-base)
if (WITH_RBD)
add_dependencies(vstart cython${PY_BINDING_INFIX}_rbd)
endif()
if (WITH_CEPHFS)
add_dependencies(vstart ceph-mds)
endif()
Expand Down

0 comments on commit 96d73b8

Please sign in to comment.