cmake: support SKIP_DASHED_BUILT_INS
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 27 Mar 2021 23:06:22 +0000 (23:06 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 28 Mar 2021 01:02:23 +0000 (18:02 -0700)
commit7bb544a4d13810c10d2c0fa1bfed336c7a31a4bc
treecc0691b970c1ce046dc63490dfbd0b24b3de048b
parent48bf2fa8bad054d66bd79c6ba903c89c704201f7
cmake: support SKIP_DASHED_BUILT_INS

Just like the Makefile-based build learned to skip hard-linking the
dashed built-ins in 179227d6e21 (Optionally skip linking/copying the
built-ins, 2020-09-21), this patch teaches the CMake-based build the
same trick.

Note: In contrast to the Makefile-based process, the built-ins would
only be linked during installation, not already when Git is built.
Therefore, the CMake-based build that we use in our CI builds _already_
does not link those built-ins (because the files are not installed
anywhere, they are used to run the test suite in-place).

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