mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
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:
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user