<div class="gmail_quote">On Fri, Jun 20, 2008 at 8:04 AM, Bill Hoffman <span dir="ltr"><<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I just discovered that VS 2005 and greater have some per target configuration files that might be interesting for CMake to create.<br>
<br>
Next to each .vcproj file is a .vcproj.CORRIN.hoffman.user file, where CORRIN is the name of the machine, and hoffman is the name of the user. These files are not binary, but are XML just like the .vcproj file. The things you can set are:<br>
<br>
<br>
Command="$(TargetPath)"<br>
WorkingDirectory=""<br>
CommandArguments=""<br>
Attach="false"<br>
DebuggerType="3"<br>
Remote="1"<br>
RemoteMachine="CORRIN"<br>
RemoteCommand=""<br>
HttpUrl=""<br>
PDBPath=""<br>
SQLDebugging=""<br>
Environment=""<br>
EnvironmentMerge="true"<br>
DebuggerFlavor=""<br>
MPIRunCommand=""<br>
MPIRunArguments=""<br>
MPIRunWorkingDirectory=""<br>
ApplicationCommand=""<br>
ApplicationArguments=""<br>
ShimCommand=""<br>
MPIAcceptMode=""<br>
MPIAcceptFilter=""<br>
/><br>
<br>
I don't think you can change the default start up project, that is in the CMake.suo (still a binary file) file. However, it looks like you can set a working directory and command arguments for the debugger. Does this look like something that CMake should be creating? If so, what would the API be from the cmake files to modify this file?<br>
<br>
-Bill<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>I just found this thread after thinking the same thing. By far the most interesting settings to make would be <span class="nfakPe">WorkingDirectory and </span>CommandArguments.<br><br>As far as the API is concerned I would go for something like a set_target_property since these settings are per target.<br>
<br>The properties should probably be something like, VS_<CONFIG>_WORKING_DIRECTORY and VS_<CONFIG>_COMMAND_ARGUMENTS where CONFIG could be DEBUG, RELEASE, etc. There should also be an ALL or a version of the property that doesn't have the config in it (VS_WORKING_DIRECTORY) that acts as a default if the individual configuration isn't present.<br>
<br>I would love this feature, as I have to do this manually for many projects every time I start with a clean build.<br><br>James<br>