Exporting cmake-gui options
问题 I have a library with a bunch of different configuration options. We usually configure the build with cmake-gui and ticking a few checkboxes. I want to automate this into a .sh script using just cmake . e.g. In GUI -> selects a bunch of different options equivalent cmake command -> cmake -D CMAKE_XXX=X -D CMAKE_XXY=XXY [a bunch of options here] .. How can I find the "equivalent" cmake command-line command to any arbitrary configuration I choose from the GUI ? 回答1: The equivalent cmake command