<div dir="ltr">Hi all,<div><br></div><div>From my understanding, the toolchain files are only inteneded for cross-compilation and I'm afraid you will run in some kind of troubles if you try to use it for something else.</div><div><br></div><div>As far I know, this feature you describe does not exist in CMake.</div><div><br></div><div>However I have a piece of CMake code that does what you want. Please find it below. Maybe this can help you.</div><div>- By default, it loads the settings from file <font face="monospace, monospace">Local_Settings.cmake</font><font face="arial, helvetica, sans-serif">. I</font>t is ignored silently if it does not exist</div><div>- You can use <font face="monospace, monospace">-DLOCAL_SETTINGS=My_Other_Local_Settings.cmake</font> on the CMake command line to specify a different file</div><div><br></div><div>
<p style="margin:0px">In a separate file <font face="monospace, monospace">Load_Local_Settings.cmake</font>:</p><p style="margin:0px"><br></p>
</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">#</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Default</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">name</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">for</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Local</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Settings</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">file</span></pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">set</span>(DEFAULT_LOCAL_SETTINGS_FILE<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(0,0,128)">${</span><span style="color:rgb(192,144,80)">CMAKE_SOURCE_DIR</span><span style="color:rgb(0,0,128)">}</span><span style="color:rgb(0,128,0)">/Local_Settings.cmake"</span>)</pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><br></pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">#</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">CMake</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">cache</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">option</span></pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">set</span>(LOCAL_SETTINGS<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">""</span><span style="color:rgb(192,192,192)"> </span><span style="font-family:monospace;font-size:9pt">CACHE</span><span style="color:rgb(192,192,192)"> </span><span style="font-family:monospace;font-size:9pt">FILEPATH</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"Path</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">to</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">a</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">file</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">containing</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Local</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Settings</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">to</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">load"</span>)</pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><br></pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">#</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Set</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">LOCAL_SETTINGS_FILE</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">variable</span></pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">if</span>(LOCAL_SETTINGS)</pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">#</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">If</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">cache</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">variable</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">is</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">set,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">use</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">it</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">and</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">fails</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">if</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">it</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">is</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">not</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">valid</span></pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,128,0)">if</span>(<span style="font-family:monospace;font-size:9pt">EXISTS</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(0,0,128)">${LOCAL_SETTINGS}</span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(192,192,192)"> </span><span style="font-family:monospace;font-size:9pt">AND</span><span style="color:rgb(192,192,192)"> </span><span style="font-family:monospace;font-size:9pt">NOT</span><span style="color:rgb(192,192,192)"> </span><span style="font-family:monospace;font-size:9pt">IS_DIRECTORY</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(0,0,128)">${LOCAL_SETTINGS}</span><span style="color:rgb(0,128,0)">"</span>)</pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">set</span>(LOCAL_SETTINGS_FILE<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(0,0,128)">${LOCAL_SETTINGS}</span><span style="color:rgb(0,128,0)">"</span>)</pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,128,0)">else</span>()</pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">message</span>(<span style="font-family:monospace;font-size:9pt">FATAL_ERROR</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"'</span><span style="color:rgb(0,0,128)">${LOCAL_SETTINGS}</span><span style="color:rgb(0,128,0)">'</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">is</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">not</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">a</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">valid</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">file</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">for</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">LOCAL_SETTINGS"</span>)</pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,128,0)">endif</span>()</pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">else</span>()</pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">#</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Otherwise,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">try</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">default</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">filename,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">and</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">ignore</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">silently</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">if</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">it</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">does</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">not</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">exist</span></pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,128,0)">if</span>(<span style="font-family:monospace;font-size:9pt">EXISTS</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(0,0,128)">${DEFAULT_LOCAL_SETTINGS_FILE}</span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(192,192,192)"> </span><span style="font-family:monospace;font-size:9pt">AND</span><span style="color:rgb(192,192,192)"> </span><span style="font-family:monospace;font-size:9pt">NOT</span><span style="color:rgb(192,192,192)"> </span><span style="font-family:monospace;font-size:9pt">IS_DIRECTORY</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(0,0,128)">${DEFAULT_LOCAL_SETTINGS_FILE}</span><span style="color:rgb(0,128,0)">"</span>)</pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">set</span>(LOCAL_SETTINGS_FILE<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(0,0,128)">${DEFAULT_LOCAL_SETTINGS_FILE}</span><span style="color:rgb(0,128,0)">"</span>)</pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,128,0)">else</span>()</pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">set</span>(LOCAL_SETTINGS_FILE<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">""</span>)</pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,128,0)">endif</span>()</pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">endif</span>()</pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><br></pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">#</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Load</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">settings</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">from</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">file</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">if</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">variable</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">is</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">defined</span></pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">if</span>(LOCAL_SETTINGS_FILE)</pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,128,0)">message</span>(<span style="font-family:monospace;font-size:9pt">STATUS</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"Using</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Local</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Settings</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">from</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">'</span><span style="color:rgb(0,0,128)">${LOCAL_SETTINGS_FILE}</span><span style="color:rgb(0,128,0)">'"</span>)</pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,128,0)">include</span>(<span style="color:rgb(0,128,0)">"</span><span style="color:rgb(0,0,128)">${LOCAL_SETTINGS_FILE}</span><span style="color:rgb(0,128,0)">"</span>)</pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">endif</span>()</pre></div></blockquote><div>



























<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, helvetica, sans-serif">Then, in your main </font><font face="monospace, monospace">CMakeLists.txt</font><font face="arial, helvetica, sans-serif">, just add: </font></pre></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><p style="margin:0px"><br></p></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">#</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Load</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Local</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Settings</span></pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">include</span>(<span style="color:rgb(192,192,192)"> </span>Load_Local_Settings.cmake<span style="color:rgb(192,192,192)"> </span>)</pre></div></blockquote><div>



<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, helvetica, sans-serif"><br></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, helvetica, sans-serif">For example, in my </font><font face="monospace, monospace">Local_Settings.cmake</font><font face="arial, helvetica, sans-serif"> file, I put things like:</font></pre></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, helvetica, sans-serif"><br></font></pre></div><div><pre style="margin-top:0px;margin-bottom:0px"><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">set</span>(EIGEN3_ROOT<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(0,0,128)">/path/to/eigen/install</span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(192,192,192)"> </span><span style="font-family:monospace;font-size:9pt">CACHE</span><span style="color:rgb(192,192,192)"> </span><span style="font-family:monospace;font-size:9pt">STRING</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">""</span>)</pre></pre></div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><pre style="margin-top:0px;margin-bottom:0px"><pre style="margin-top:0px;margin-bottom:0px"><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">#</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">You</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">can</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">use</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">environment</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">variables</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">too</span></pre></pre></pre></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><pre style="margin-top:0px;margin-bottom:0px"><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">set</span>(BOOST_ROOT<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(0,0,128)">$ENV{EBROOTBOOST}</span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(192,192,192)"> </span><span style="font-family:monospace;font-size:9pt">CACHE</span><span style="color:rgb(192,192,192)"> </span><span style="font-family:monospace;font-size:9pt">STRING</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">""</span>)</pre></pre></div></blockquote><div><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, helvetica, sans-serif"><br></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, helvetica, sans-serif"><br></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, helvetica, sans-serif">I hope this helps.</font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, helvetica, sans-serif"><br></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, helvetica, sans-serif">Best regards,</font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, helvetica, sans-serif"><br></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, helvetica, sans-serif">Xavier</font></pre></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 8, 2017 at 9:31 PM, Lectem <span dir="ltr"><<a href="mailto:lectem@gmail.com" target="_blank">lectem@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="FR"><div class="gmail-m_3896362066954968707m_7506123221152112014WordSection1"><p class="MsoNormal">I think that you are looking for the toolchain files :</p><p class="MsoNormal"><a href="https://cmake.org/cmake/help/v3.0/manual/cmake-toolchains.7.html" target="_blank">https://cmake.org/cmake/help/v<wbr>3.0/manual/cmake-toolchains.7.<wbr>html</a></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The other option is to use a cmake script to specify your variables which includes CMakelists.txt (or the other way around if you can modify the CMakelists.txt). This would be quite similar to ctests scripts.</p><p class="MsoNormal">Some good examples are in Daniel Pfeifer’s « Effective cmake » talk <a href="https://github.com/boostcon/cppnow_presentations_2017/blob/master/05-19-2017_friday/effective_cmake__daniel_pfeifer__cppnow_05-19-2017.pdf" target="_blank">https://github.com/boostcon/cp<wbr>pnow_presentations_2017/blob/<wbr>master/05-19-2017_friday/effec<wbr>tive_cmake__daniel_pfeifer__<wbr>cppnow_05-19-2017.pdf</a></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm"><p class="MsoNormal" style="border:none;padding:0cm"><b>De : </b><a href="mailto:bitminer@gmail.com" target="_blank">Brian Davis</a><br><b>Envoyé le :</b>mardi 8 août 2017 20:09<br><b>À : </b><a href="mailto:cmake@cmake.org" target="_blank">cmake Mailing List</a><br><b>Objet :</b>[CMake] CMake equivalent to Boost.Build site-config.jam oruser-config.jam</p></div><div><div class="gmail-m_3896362066954968707h5"><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal" style="margin-bottom:12pt"><br>Is there a CMake equivalent to a site-config.jam or user-config.jam<br><br><a href="http://www.boost.org/build/doc/html/bbv2/recipies/site-config.html" target="_blank">http://www.boost.org/build/doc<wbr>/html/bbv2/recipies/site-confi<wbr>g.html</a></p></div><div><p class="MsoNormal" style="margin-bottom:12pt">basically a CMake file the user can put in a project directory that CMake will read first when using cmake-gui that allows user to specify stuff they don't want to have to keep specifying in cmake-gui each "delete cache"</p></div><div><p class="MsoNormal" style="margin-bottom:12pt">such as </p></div><div><p class="MsoNormal" style="margin-bottom:12pt">set( CMAKE_INSTALL_PREFIX ${CURRENT_LIST_DIR}/install CACHE STRING "" FORCE)<br>set( CMAKE_DEBUG_POSTFIX d CACHE STRING "" FORCE )<br><br></p></div><div><p class="MsoNormal">There is cmake.exe</p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12pt">-C <initial-cache> </p></div><div><p class="MsoNormal" style="margin-bottom:12pt">but requires command line</p></div><div><p class="MsoNormal">come to think of it would be nice if </p><p class="MsoNormal"><span class="gmail-m_3896362066954968707m_7506123221152112014gmail-m-1701519146603925782gmail-pre"><span style="font-size:10pt;font-family:"Courier New"">set( CMAKE_GENERATOR_PLATFORM "Visual</span></span><code><span style="font-size:10pt"> </span></code><span class="gmail-m_3896362066954968707m_7506123221152112014gmail-m-1701519146603925782gmail-pre"><span style="font-size:10pt;font-family:"Courier New"">Studio</span></span><code><span style="font-size:10pt"> </span></code><span class="gmail-m_3896362066954968707m_7506123221152112014gmail-m-1701519146603925782gmail-pre"><span style="font-size:10pt;font-family:"Courier New"">12</span></span><code><span style="font-size:10pt"> </span></code><span class="gmail-m_3896362066954968707m_7506123221152112014gmail-m-1701519146603925782gmail-pre"><span style="font-size:10pt;font-family:"Courier New"">2013</span></span><code><span style="font-size:10pt"> </span></code><span class="gmail-m_3896362066954968707m_7506123221152112014gmail-m-1701519146603925782gmail-pre"><span style="font-size:10pt;font-family:"Courier New"">Win64" )</span></span></p><p>in desired user config file and CMake would just "make it so" on clicking Generate.</p><p>I can do this with my own projects, by implementing it myself, but when checking out 3rd party projs they can be all over the map on config allowing a user-config.cmake would provide mechanism to tame the config problems.</p><p>Desired workflow</p><p>1) Checkout 3rd party proj</p><p>2) put a CMakeUser.txt or whatever file per project</p><p>3) Run CMake GUI Generate</p><p>4) Click Open Project</p><p>5) Change whatever manual bits in in gui</p><p>6) Update project suing git witch branches versions</p><p>7) Delete Cache</p><p>8) Return to 3</p><p>9) Doopy doopy doo whatever else</p><p><u></u> <u></u></p></div></div><p><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div><br>--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMak<wbr>e_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/su<wbr>pport.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/co<wbr>nsulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/tr<wbr>aining.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/cmake</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail-m_3896362066954968707gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Dr Xavier BESSERON<br>Research associate<br>FSTC, University of Luxembourg</div><div dir="ltr">Campus Belval, Office MNO E04 0415-040<br>Phone: <a href="tel:+352%2046%2066%2044%205418" value="+3524666445418" target="_blank">+352 46 66 44 5418</a><br><div><a href="http://luxdem.uni.lu/" target="_blank">http://luxdem.uni.lu/</a><br></div><div><br></div></div></div></div></div></div></div>
</div></div>