diff options
author | Brad King <brad.king@kitware.com> | 2021-10-13 16:17:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-10-13 16:18:53 (GMT) |
commit | dde674122e711987e2e9f320271074962bb157b9 (patch) | |
tree | 7e419a15519ee8f6b06070c974d686bac6a35b31 /Tests/RunCMake/BuildDepends | |
parent | 315fc296e3c1ecddbf59a2144b0dff9a05c715ed (diff) | |
download | CMake-dde674122e711987e2e9f320271074962bb157b9.zip CMake-dde674122e711987e2e9f320271074962bb157b9.tar.gz CMake-dde674122e711987e2e9f320271074962bb157b9.tar.bz2 |
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.
Diffstat (limited to 'Tests/RunCMake/BuildDepends')
-rw-r--r-- | Tests/RunCMake/BuildDepends/MakeDependencies.step1.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Tests/RunCMake/BuildDepends/MakeDependencies.step1.cmake b/Tests/RunCMake/BuildDepends/MakeDependencies.step1.cmake index c74f033..04cd698 100644 --- a/Tests/RunCMake/BuildDepends/MakeDependencies.step1.cmake +++ b/Tests/RunCMake/BuildDepends/MakeDependencies.step1.cmake @@ -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" ) |