<div dir="ltr">Thanks for all the help on this topic.<div><br></div><div>The user file generation worked like a charm.  Really helped out a lot.</div><div><br></div><div>Thanks to Nils as well for the great advice.  This makes my MSVC projects much more manageable.</div>
<div><br></div><div>Thanks!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 22, 2014 at 2:12 PM, Eric Clark <span dir="ltr"><<a href="mailto:eclark@ara.com" target="_blank">eclark@ara.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
<br>
> -----Original Message-----<br>
> From: CMake [mailto:<a href="mailto:cmake-bounces@cmake.org">cmake-bounces@cmake.org</a>] On Behalf Of John<br>
> Drescher<br>
> Sent: Monday, July 21, 2014 3:55 PM<br>
> To: Joseph Rosensweig<br>
> Cc: CMake ML<br>
> Subject: Re: [CMake] CMAKE changing Visual Studio Settings<br>
><br>
> > So CMAKE can't control the options int he *.user files I guess :-\?<br>
> > Would a potential workaround be to find a command line tool that can<br>
> > edit these and run it as a post-build script?<br>
><br>
> CMake gives you the functionality needed to edit these via your own script. I<br>
> mean reading and writing files replacing text.<br>
<br>
</div></div>In our CMake system, we wanted to be able to set the program to execute when "Start Debugging" was clicked in Visual Studio. This option is stored in the *.user file and thus you cannot change it via CMake directly. However, you CAN build a template of the *.user file and put some CMake variables inside of it. Then, when you build the project files with CMake, you can use the configure_file command to create the user's *.user file from the template and the values you have for each variable in the template. This option works beautifully and it is very easy to setup.<br>

<br>
Hope this helps...<br>
Eric<br>
<br>
><br>
> John<br>
> --<br>
><br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at:<br>
> <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>
> Kitware offers various services to support the CMake community. For more<br>
> information on each offering, please visit:<br>
><br>
> CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
> CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
> CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>