]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: CMAKE_ROLE defaults to "PROJECT"
authorKefu Chai <kchai@redhat.com>
Thu, 19 Dec 2019 02:56:16 +0000 (10:56 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 19 Dec 2019 02:58:58 +0000 (10:58 +0800)
commit47d0e1e16d4cd7a4cc3211a5b39a125b602c299b
tree68fb2e4a2bffb0f54cb8aa1f090931848cd80ddc
parent9fc9197db00203865d43dc5117626a7b29358f1e
cmake: CMAKE_ROLE defaults to "PROJECT"

so we can use exported targets like "Python3::Python", which is defined
only if CMAKE_ROLE is "PROJECT". but this global property was introduced
by CMake 3.14, but the minimum required version of CMake is 3.10.2 in
Ceph project at this moment. let's set it if it's not defined.

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