]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake/modules/Distutils: do not add ${name}-clone if already added 28915/head
authorKefu Chai <kchai@redhat.com>
Fri, 26 Jul 2019 07:35:59 +0000 (15:35 +0800)
committerSebastian Wagner <sebastian.wagner@suse.com>
Fri, 26 Jul 2019 10:11:25 +0000 (12:11 +0200)
commitde9a04027fea1fb526597d983eba9a0a1de6661d
tree291c049732635793b75164ebf4a6f75191336f01
parentea15a67b98e09c3ad049a3086eaebb1dc0e11768
cmake/modules/Distutils: do not add ${name}-clone if already added

if `distutils_install_module("foo" ...)` is called mutiple times with
different python version, `foo-clone` will be added multiple times as a
custom target. which is not allowed:

add_custom_target cannot create target "foo-clone" because another
target with the same name already exists.

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/Distutils.cmake