I guess I have failed to strike the interest of anyone on this?<br clear="all"><div><br></div><div>---------</div>Robert Dailey<br>
<br><br><div class="gmail_quote">On Mon, Jan 9, 2012 at 5:58 PM, Robert Dailey <span dir="ltr"><<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
there are .user files generated by newer versions of Visual Studio (since 2005 I believe) that contain per-machine or per-workspace information. For all intents and purposes these are temporary files that are not checked into version control.<div>
<br></div><div>The normal file naming convention for these are:</div><div><br></div><div>project.vcproj.DOMAIN.USER.user</div><div><br></div><div>Where DOMAIN is the machine/domain name, and USER is the local account name.</div>
<div><br></div><div>I found out a couple of years ago that if you rename it to this:</div><div><br></div><div>project.vcproj.user</div><div><br></div><div>Visual Studio will treat this as "defaults" for the machine-specific version created using the naming convention I first outlined.</div>
<div><br></div><div>The user files are useful for setting debug working directory and command arguments. There are some other things you can set but I have never found a use for them. Since I like to set these two parameters, what I've done is keep my template user file in version control, and use CMake's configure_file() to fill in the command arguments and working directory fields for me. This approach is a good workaround but I'd really like to see CMake generate these for me. Right now I have to keep 1 user file for each version of visual studio that can be used, and configure them differently based on VS IDE selection.</div>
<div><br></div><div>Would it be suitable for CMake to incorporate this functionality? If CMake provided built-in support for this, we could create target properties that would set these fields on the target (it would set them on the generated user file instead of the vcproj file like normal target properties would do):</div>
<div><br></div><div>set_target_properties( project PROPERTIES</div><div> DEBUG_COMMAND_ARGUMENTS "-debug -reg"</div><div> DEBUG_WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"</div><div>)</div><div>
<br></div><div>I'd be happy to help implement this should David, Bill, and others find it to be a good idea.</div><div><br></div><div>PS: I think I can do it without boost this time ;)<br clear="all"><div><br></div><div>
---------</div><span class="HOEnZb"><font color="#888888">Robert Dailey<br>
</font></span></div>
</blockquote></div><br>