Provide a command line option to set cache entries from a file
There is already a option to pre populate the cache entries from a file with the option -C
.
Unfortunately this function does not rerun, if the file CMakeCache.txt
is already created.
There could be use cases were a another tool wants to provide CMake options via a file and does not want to call CMake with the option -D
for each of the options.
Open questions:
- Is does function not available due to paradigm reasons?
- What would be a good syntax for the file
- What would be good parameter for this function
- Could we not also think about giving a whole parameter input from a file (like most compilers do)?