<div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">Le ven. 28 sept. 2018 à 13:03, Dorier, Matthieu <<a href="mailto:mdorier@anl.gov">mdorier@anl.gov</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div id="gmail-m_5203002136301492086divtagdefaultwrapper" style="font-size:10pt;color:rgb(51,51,153);font-family:Tahoma,Geneva,sans-serif" dir="ltr">
<p style="margin-top:0px;margin-bottom:0px">Ah then maybe I don't understand correctly what is supposed to be displayed by ccmake.</p></div></div></blockquote><div><br></div><div>My usage workflow, not sure it is the expected one but other CMake users/developers may correct me if my usage is wrong.</div><div><br></div><div>1) Launch ccmake in an empty buiddir :</div><div> ccmake -G Ninja /path/to/source<br></div><div> </div><div>2) Hit 'c' once to populate the cache</div><div><br></div><div>3) hand edit needed var</div><div><br></div><div>4) Hit 'c' again and check result</div><div><br></div><div>5) Hit 'g'.</div><div><br></div><div>Then I may have forgotten to toggle an option so I :</div><div><br></div><div>1) Launch ccmake in the populated build dir:</div><div> ccmake .</div><div><br></div><div>2) hand edit the forgotten vars</div><div><br></div><div>3) Hit 'c' then 'g'.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div id="gmail-m_5203002136301492086divtagdefaultwrapper" style="font-size:10pt;color:rgb(51,51,153);font-family:Tahoma,Geneva,sans-serif" dir="ltr">
<p style="margin-top:0px;margin-bottom:0px"><br>
</p>
<p style="margin-top:0px;margin-bottom:0px">In general, how can I have in the ccmake screen some variables displayed to configure some paths to some libraries?</p></div></div></blockquote><div><br></div><div>You have to hit 'c' once to populate the cache and make ccmake/cmake-gui aware of the defined (may be void) variables/</div><div><br></div><div>There was a "wizard" mode for cmake some time ago that was asking questions for setting var values but it's gone:</div><div><br></div><div><div>$ cmake -i</div><div>The "cmake -i" wizard mode is no longer supported.</div><div>Use the -D option to set cache values on the command line.</div><div>Use cmake-gui or ccmake for an interactive dialog.</div></div><div><br></div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Eric<br></div></div></div></div></div></div></div>