Getting ready

The ingredient for this recipe will be a tiny Python script (test.py) that always returns 1, which CMake interprets as a failure:

import sys# simulate a failing testsys.exit(1)

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.