]> git.ipfire.org Git - thirdparty/git.git/commit
cmake: accommodate for `UNIT_TEST_SOURCES`
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 3 Aug 2025 21:24:26 +0000 (21:24 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 17 Aug 2025 16:12:53 +0000 (09:12 -0700)
commitba8bef458c9626b01a4d730b23336e82ae83fb40
tree61d19aa7a9886f05afd1a6143f2646e379e9603e
parent724518f3884d8707c5f51428ba98c115818229b8
cmake: accommodate for `UNIT_TEST_SOURCES`

As part of 9bbc981c6f2 (t/unit-tests: finalize migration of
reftable-related tests, 2025-07-24), the explicit list of
`UNIT_TEST_PROGRAMS` was turned into a wildcard pattern-derived list.

Let's do the same in the CMake definition.

This fixes build errors with symptoms like this:

  CMake Error at CMakeLists.txt:132 (string):
    string sub-command REPLACE requires at least four arguments.
  Call Stack (most recent call first):
    CMakeLists.txt:1037 (parse_makefile_for_scripts)

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/buildsystems/CMakeLists.txt