]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: include googletest instead of its subdirectory
authorKefu Chai <kchai@redhat.com>
Mon, 27 May 2019 07:09:25 +0000 (15:09 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 27 May 2019 07:18:00 +0000 (15:18 +0800)
commit922aa71a6f5d01ff7e2486c58be18b44bd68c656
tree755fc684be1bbcecbd4acf1d4b75bcc01e2df716
parentb7d899c1ddf8d084547030b24ddc33b3b0b532cd
cmake: include googletest instead of its subdirectory

so its own settings can be populated properly, among other things,
`GOOGLETEST_VERSION` is set in the CMakeLists.txt in its root directory.
without it, cmake complains when interpreting

project(gtest VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)

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