CMP0110.rst 1.2 KB

12345678910111213141516171819202122232425262728
  1. CMP0110
  2. -------
  3. .. versionadded:: 3.19
  4. :command:`add_test` supports arbitrary characters in test names.
  5. :command:`add_test` can now (officially) create tests with whitespace and
  6. other special characters in its name. Before CMake version 3.19 that was not
  7. allowed, however, it was possible to work around this limitation by explicitly
  8. putting escaped quotes around the test's name in the ``add_test`` command.
  9. Although never officially supported several projects in the wild found and
  10. implemented this workaround. However, the new change which officially allows
  11. the ``add_test`` command to support whitespace and other special characters in
  12. test names now breaks that workaround. In order for these projects to work
  13. smoothly with newer CMake versions, this policy was introduced.
  14. The ``OLD`` behavior of this policy is to still prevent ``add_test`` from
  15. handling whitespace and special characters properly (if not using the
  16. mentioned workaround). The ``NEW`` behavior on the other hand allows names
  17. with whitespace and special characters for tests created by ``add_test``.
  18. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.19
  19. .. |WARNS_OR_DOES_NOT_WARN| replace:: warns
  20. .. include:: STANDARD_ADVICE.txt
  21. .. include:: DEPRECATED.txt