]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: update civetweb.h on demand 40843/head
authorKefu Chai <kchai@redhat.com>
Wed, 14 Apr 2021 03:58:57 +0000 (11:58 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 14 Apr 2021 04:17:50 +0000 (12:17 +0800)
commit5fa591a765b0bec31951c03ec1b46362c0ac373f
treea166f14c511827b90d58307888c702f303f61637
parent05861cabb2060a1070300f06b91d1a9b7a4f3016
cmake: update civetweb.h on demand

instead of using a dedicated target for updating civetweb.h, use
add_custom_command() with OUTPUT option.

so the generated rule does not rerun the command specified by the
civetweb_h target every time we build the targets depending on it.

use the header file as the dependency helps to improve the readability
as there is one less link in the dependency chain, and by specifying the
OUTPUT, cmake is able to figure out the dependency on the header file so
it does not try to regenerate it every time.

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