CMP0178.rst 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. CMP0178
  2. -------
  3. .. versionadded:: 3.31
  4. Test command lines preserve empty arguments.
  5. Empty values in the :prop_tgt:`TEST_LAUNCHER` and
  6. :prop_tgt:`CROSSCOMPILING_EMULATOR` target properties are now preserved
  7. for tests added by the following:
  8. * The :command:`add_test` command.
  9. * The :command:`ExternalData_Add_Test` command from the :module:`ExternalData`
  10. module.
  11. * The :command:`gtest_add_tests` or :command:`gtest_discover_tests` commands
  12. from the :module:`GoogleTest` module.
  13. For the :command:`gtest_add_tests` and :command:`gtest_discover_tests`
  14. commands, empty elements in the values passed after the ``EXTRA_ARGS``
  15. keyword are also now preserved.
  16. The ``OLD`` behavior of this policy silently discards empty list items
  17. from the :prop_tgt:`TEST_LAUNCHER` and :prop_tgt:`CROSSCOMPILING_EMULATOR`
  18. target properties in the above-mentioned cases. It also silently discards
  19. empty items from the values given after ``EXTRA_ARGS`` for the
  20. :command:`gtest_add_tests` and :command:`gtest_discover_tests` commands.
  21. The ``NEW`` behavior of this policy preserves empty list items in the
  22. :prop_tgt:`TEST_LAUNCHER` and :prop_tgt:`CROSSCOMPILING_EMULATOR` target
  23. properties, and in values given after ``EXTRA_ARGS`` for
  24. :command:`gtest_add_tests` and :command:`gtest_discover_tests`.
  25. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.31
  26. .. |WARNS_OR_DOES_NOT_WARN| replace:: warns
  27. .. include:: include/STANDARD_ADVICE.rst
  28. .. include:: include/DEPRECATED.rst