Tests: Reduce RunCMake.BuildDepends MakeDependencies case size on Borland

The Borland compiler takes a long time to process a large number of
include files.  Sometimes the test times out.  Reduce its size.
This commit is contained in:
Brad King
2021-10-13 12:17:53 -04:00
parent 315fc296e3
commit dde674122e
@@ -1,5 +1,10 @@
file(TOUCH "${RunCMake_TEST_BINARY_DIR}/main.c")
foreach(i RANGE 1 20000)
if(RunCMake_GENERATOR STREQUAL "Borland Makefiles")
set(num_headers 2000)
else()
set(num_headers 20000)
endif()
foreach(i RANGE 1 ${num_headers})
file(WRITE "${RunCMake_TEST_BINARY_DIR}/temp_header_file_${i}.h"
"#define HEADER_${i} ${i}\n"
)