]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: find liboath using the correct name 22430/head
authorKefu Chai <kchai@redhat.com>
Wed, 6 Jun 2018 02:27:38 +0000 (10:27 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 6 Jun 2018 14:49:35 +0000 (22:49 +0800)
commitca78ab2254d10ba9da7b0d760ed2b1cd6577c0bb
tree9b9e2b6a2851ab6304ee7ad60c34487df2317688
parent7b3a7306b645a89575976dcf2923db71729c23b7
cmake: find liboath using the correct name

we should reference liboath by the $name in Find${name}.cmake, also the
$name should be consistent when calling find_package_handle_standard_args().
in this change
* rename Findliboath.cmake to FindOATH.cmake to be consistent with other
  find_package() moduless.
* use "OATH" in find_package_handle_standard_args() instead of "oath"
* set the interface properties for OATH::OATH, so the target linking
  against it can reference its header directories and libraries automatically.
* remove the stale comment for find_package_handle_standard_args()
* set OATH_INCLUDE_DIRS and OATH_LIBRARIES to follow the convention of
  find_package(), even they are not used directly in this project.

Reported-by: Erwan Velu <erwan@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt
cmake/modules/FindOATH.cmake [new file with mode: 0644]
cmake/modules/Findliboath.cmake [deleted file]
src/cls/CMakeLists.txt
src/rgw/CMakeLists.txt