]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: do not print warning in each cmake run 41725/head
authorKefu Chai <kchai@redhat.com>
Mon, 7 Jun 2021 07:09:42 +0000 (15:09 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 7 Jun 2021 07:13:12 +0000 (15:13 +0800)
commite1a081a2c49b3ca541fb59c97230f60649bcbbd5
tree41916a7d45ec015412ccc87de12ab9b0f93a6cc4
parentcf8814d3165a0b29e3695ccaf09f529d15737bef
cmake: do not print warning in each cmake run

cmake prints the warning of

> run-promtool-unittests is skipped due to missing promtool

everytime if the test is skipped per the test. but we only need to
get this message the first time cmake is executed. more importantly,
the value of `PROMTOOL_EXECUTABLE` is cached. so the new error message
does not provide updated information, so just stop doing so if the
cached variable is found.

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