This recipe could be combined with the previous recipe; processor capabilities could be queried using cmake_host_system_information.
There is more
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.