Detecting the Environment

In this chapter, we will cover the following recipes:

  • Discovering the operating system
  • Dealing with platform-dependent source code
  • Dealing with compiler-dependent source code
  • Discovering the host processor architecture
  • Discovering the host processor instruction set
  • Enabling vectorization for the Eigen library

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.