]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: vstart do not depend on cython_rbd if WIN32
authorKefu Chai <kchai@redhat.com>
Tue, 8 Jun 2021 05:05:40 +0000 (13:05 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 8 Jun 2021 05:07:08 +0000 (13:07 +0800)
6eacbdcac18dbe4500f455ec1489caaba1e84baa introduced a regression which
fails the WIN32 build. like:

CMake Error at src/CMakeLists.txt:916 (add_dependencies):
  The dependency target "cython_rbd" of target "vstart" does not exist.

in this change, cython_rbd is excluded from the vstart targets on WIN32
build.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt

index 73b3279505c63d2ec689298edfecf300b8282427..760a2ceb0ca0d23802e25e80b2ccaa16dd4e9ba4 100644 (file)
@@ -912,7 +912,7 @@ if (WITH_MGR)
 endif()
 
 add_custom_target(vstart DEPENDS vstart-base)
-if(WITH_RBD)
+if(WITH_RBD AND NOT WIN32)
   add_dependencies(vstart cython_rbd)
 endif()
 if (WITH_CEPHFS)