diff options
author | Steffen Seckler <steffen.seckler@tum.de> | 2020-02-18 16:28:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-02-25 14:03:56 (GMT) |
commit | dac201442db19c4155cf96de32fc8aa95da06589 (patch) | |
tree | 6e8d68be5eee9807250d6582a7c6c02bf94fdb61 /Help/guide/tutorial/Complete/MathFunctions/MathFunctions.h | |
parent | 3276f85fd774035221d00b291bfe0c624f6a4831 (diff) | |
download | CMake-dac201442db19c4155cf96de32fc8aa95da06589.zip CMake-dac201442db19c4155cf96de32fc8aa95da06589.tar.gz CMake-dac201442db19c4155cf96de32fc8aa95da06589.tar.bz2 |
GoogleTest: Optimize gtest_discover_tests
Prior to this, `gtest_discover_tests` could take multiple minutes if
many tests are present. This behavior was caused by a repeated addition
to the variable `script` in the `add_command` function using:
set(script "${script}${NAME}(${_args})\n" PARENT_SCOPE)
This takes very long for large variables.
This commit flushes the contents of the variable to ${CTEST_FILE} after
a certain size of the variable is reached.
In addition:
- cmake_minimum_required(VERSION ${CMAKE_VERSION}) is set to allow usage
of new policies. In particular, CMP0053 speeds up variable expansion.
- No longer appends strings using set(), but instead uses string(APPEND).
- An additional buffer for the tests variable is set.
Diffstat (limited to 'Help/guide/tutorial/Complete/MathFunctions/MathFunctions.h')
0 files changed, 0 insertions, 0 deletions