List and Change CMake Variable Values

CMake is a powerful, cross-platform tool for managing the build process of software. It is able to identifiy the location of the software’s requirements and the available compiler/s. Based on that, CMake configures and generates a makefile which is ready to be executed.

This week’s post shows how to list all variables and their set value in a CMake generated build folder.

  1. Switch to the build folder with: cd [build folder]
  2. Execute inside the folder: cmake -LAH