How it works

Using set_tests_properties(example PROPERTIES WILL_FAIL true), we set the property WILL_FAIL to true, which inverts success/failure. However, this feature should not be used to temporarily fix broken tests.

Get CMake Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.