diff options
author | Willem Jan Withagen <wjw@digiware.nl> | 2017-05-26 11:58:14 +0200 |
---|---|---|
committer | Willem Jan Withagen <wjw@digiware.nl> | 2017-07-02 17:10:01 +0200 |
commit | b331898ea9aefc547265b388dddbc388417184fe (patch) | |
tree | 5b0f039b436d30bf9a285371e43200b302a84ad4 /src/rbd_replay/CMakeLists.txt | |
parent | Merge pull request #15445 from wjwithagen/wip-wjw-freebsd-osd-scrub-repair-2 (diff) | |
download | ceph-b331898ea9aefc547265b388dddbc388417184fe.tar.xz ceph-b331898ea9aefc547265b388dddbc388417184fe.zip |
CMakeLists.txt: Rewrite 2 remaning options to WITH_
All options to en/disable inclusion of libraries or other software
are of the format WITH_ so that the Cmake commaind like ahs all
WITH_* options. The WITH_=ON option will result in a HAVE_ setting
in CMAKE so that tests can use that variable.
Last "abusers" to actually follow this format.
- HAVE_BABELTRACE
- HAVE_ZFSLIB is fixed in #15907
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
Diffstat (limited to 'src/rbd_replay/CMakeLists.txt')
-rw-r--r-- | src/rbd_replay/CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rbd_replay/CMakeLists.txt b/src/rbd_replay/CMakeLists.txt index 100a3ab861b..2e2e176d80b 100644 --- a/src/rbd_replay/CMakeLists.txt +++ b/src/rbd_replay/CMakeLists.txt @@ -23,7 +23,7 @@ set(librbd_replay_ios_srcs add_library(rbd_replay_ios STATIC ${librbd_replay_ios_srcs}) target_link_libraries(rbd_replay_ios librbd librados global) -if(${WITH_BABELTRACE}) +if(HAVE_BABELTRACE) add_executable(rbd-replay-prep rbd-replay-prep.cc) target_link_libraries(rbd-replay-prep @@ -39,4 +39,5 @@ if(${WITH_BABELTRACE}) Boost::date_time ) install(TARGETS rbd-replay-prep DESTINATION bin) -endif(${WITH_BABELTRACE}) +endif(HAVE_BABELTRACE) + |