Bill Hoffman wrote: > Actually, it is not stored in the solution file. It is stored in the > .ncb file. This is a binary file, that we do not know the format of. Ah... I see, but...
If I am not mistaken, the MS IDE *has* to select some configuration as the default when a project is loaded. I would imagine that it would make the default configuration the first configuration it finds (seems the logical thing to do, anyways, but with Microsoft you never know), so cmake could re-spit the appropriate files changing the order of the configurations. If that's not the case, reverse engineering the file is probably not a good solution as the format of that file can easily change. The best solution is to check whether the user is running cmake on windows and whether the compiler IDE is installed. Most users wanting that feature will probably be running cmake in the same development machine where the IDE is. If that results on a positive, it should be possible to run the MSVC IDE on batch and force it to load the project and then re-save it with the correct setting, using either its COM interface or a simple script on later IDE versions, I would think. For X Code, I imagine something similar could be done but using either an Obj-C / Apple script little program. -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E GeForce7300GT Kubuntu Edgy _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake