How to store CMake build settings

There is an option to pre-load a script for populating the cache file with cmake using cmake -C <initial-cache> The initial-cache is a file containing variables set in the following way, e.g. for the install prefix: set(CMAKE_INSTALL_PREFIX “/my/install/prefix” CACHE PATH “”) Then just pass this file while populating the cache with cmake. Easy, but I … Read more