<div dir="ltr"><div><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/<wbr>doc/html/bbv2/recipies/site-<wbr>config.html</a><br><br></div><div>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"<br><br></div><div>such as <br><br></div><div>set( CMAKE_INSTALL_PREFIX ${CURRENT_LIST_DIR}/install CACHE STRING "" FORCE)<br>set( CMAKE_DEBUG_POSTFIX d CACHE STRING "" FORCE )<br><br><br></div><div>There is cmake.exe<br></div><div><br></div><div>-C <initial-cache> <br><br></div><div>but requires command line<br><br></div><div>come to think of it would be nice if <br><dl class="gmail-m_-1701519146603925782gmail-docutils"><dt><code class="gmail-m_-1701519146603925782gmail-docutils gmail-m_-1701519146603925782gmail-literal"><span class="gmail-m_-1701519146603925782gmail-pre">set( CMAKE_GENERATOR_PLATFORM "Visual</span> <span class="gmail-m_-1701519146603925782gmail-pre">Studio</span> <span class="gmail-m_-1701519146603925782gmail-pre">12</span> <span class="gmail-m_-1701519146603925782gmail-pre">2013</span> <span class="gmail-m_-1701519146603925782gmail-pre">Win64" )</span></code></dt></dl><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<br></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<br></p><p>7) Delete Cache</p><p>8) Return to 3</p><p>9) Doopy doopy doo whatever else<br></p><p><br></p><p><br></p></div></div>