]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: Ensure git exists before executing it 54963/head
authorDominique Leuenberger <dimstar@opensuse.org>
Tue, 19 Dec 2023 12:28:29 +0000 (13:28 +0100)
committerDominique Leuenberger <dimstar@opensuse.org>
Tue, 19 Dec 2023 14:27:45 +0000 (15:27 +0100)
commit8615731637a116f7b9299c6122a0e058d43a4f6d
tree32671471c273e6c8871e7f767479de56ff646816
parent0c79bc2d668a45dade1d151f4825b2282602d421
cmake: Ensure git exists before executing it

CMake 3.28 has turned stricter when executing string(REPLACE …) and
expects four or more commands. In case of distro package builds from
tarball, it happens that git is not present. CTags.cmake tries to
catch that by veriying the exit status of the command, but as there
is in fact git | awk, awk returns 0 even when git does not exist.

Ensure that the variable submodules has been defined before trying
to replace substrings in this variable.

Signed-off-by: Dominique Leuenberger <dimstar@opensuse.org>
cmake/modules/CTags.cmake