[CMake] visual studio project settings

Bill Hoffman bill.hoffman at kitware.com
Fri Jun 20 11:04:13 EDT 2008


I just discovered that VS 2005 and greater have some per target 
configuration files that might be interesting for CMake to create.

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:


         Command="$(TargetPath)"
                                 WorkingDirectory=""
                                 CommandArguments=""
                                 Attach="false"
                                 DebuggerType="3"
                                 Remote="1"
                                 RemoteMachine="CORRIN"
                                 RemoteCommand=""
                                 HttpUrl=""
                                 PDBPath=""
                                 SQLDebugging=""
                                 Environment=""
                                 EnvironmentMerge="true"
                                 DebuggerFlavor=""
                                 MPIRunCommand=""
                                 MPIRunArguments=""
                                 MPIRunWorkingDirectory=""
                                 ApplicationCommand=""
                                 ApplicationArguments=""
                                 ShimCommand=""
                                 MPIAcceptMode=""
                                 MPIAcceptFilter=""
                         />

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?

-Bill


More information about the CMake mailing list