]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: make "WITH_CEPH_DEBUG_MUTEX" depend on CMAKE_BUILD_TYPE
authorKefu Chai <kchai@redhat.com>
Fri, 12 Mar 2021 11:29:54 +0000 (19:29 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 12 Mar 2021 13:00:19 +0000 (21:00 +0800)
commit403f1ec2888a495fd3e40abbdb10c82793e22521
treeae946629c7f4f8bbbbc59255897b9b9f776d22c4
parentfcdc229175ef90143963efaecfc823fcdb7b638f
cmake: make "WITH_CEPH_DEBUG_MUTEX" depend on CMAKE_BUILD_TYPE

this option is available only if CMAKE_BUILD_TYPE is Debug.

this change helps us to unify the checks for WITH_CEPH_DEBUG_MUTEX,
without this change, we always have to check both WITH_CEPH_DEBUG_MUTEX
*and* CMAKE_BUILD_TYPE.

after this change, we only respect WITH_CEPH_DEBUG_MUTEX.

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