build: Prefix check-single-includes artifacts.

The previous naming scheme could conflict with the test fixture
artifacts from `test/functional/fixtures/`, which also produce
`foo-test` artifacts.
This commit is contained in:
Justin M. Keyes
2017-03-27 14:44:14 +02:00
parent e20e9645b2
commit 88124dfebc

View File

@@ -435,6 +435,7 @@ set(NO_SINGLE_CHECK_HEADERS
sha256
sign_defs
spell
spellfile
syntax
syntax_defs
tag
@@ -462,7 +463,7 @@ foreach(hfile ${NVIM_HEADERS})
if(NOT ${hfile} MATCHES "[.]c[.]h$")
set(tsource "${GENERATED_DIR}/${r}.test-include.c")
set(tresult "${GENERATED_DIR}/${r}.test-include.i")
string(REPLACE "/" "-" texe "${r}-test")
string(REPLACE "/" "-" texe "test-incl-${r}")
write_file("${tsource}" "#include \"${hfile}\"\nint main(int argc, char **argv) { return 0; }")
get_preproc_output(PREPROC_OUTPUT ${tresult})
add_executable(