Print changes made via ccmake

2019-06-11 13:09发布

问题:

Is there a way to export all the cmake configuration changes made in ccmake?

So if I call

ccmake <path-to-project>

and make a bunch of changes there, I'd like to have a way to export the delta between the default settings and the settings I ended up with, such that I can use them later with a plain cmake command like:

cmake -DPROJECT_OPTION1=On -DPROJECT_OPTION2=Off <path-to-project>

Essentially I'm looking for the same functionality available in cmake-gui described here export CMake variables from GUI to command line just for ccmake.

标签: cmake