On 23/06/2011 23:32, "Todd Gamblin" <[email protected]> wrote: >You could do this, but it seems like a lot of work for the developer AND >the user compared to my suggestion of just having a variable for the >compiler-specific C99 flags, or some similar mechanism. We know an awful >lot of other things about compiler switches. Dialect seems like a useful >thing to add to the platform file. Someone does this once for each known >compiler ID and now no one has to bother with this stuff anymore. > >-Todd
A variable for the compiler-specific flags doesn't work in the case of e.g. Sun Studio, where the C99 compiler and C89 compilers are separate binaries. I think the appropriate solution here is a project-specific dialect flag - perhaps one taking options in the GNU format since it seems most familiar. One could perhaps generalise this further - a file-specific dialect flag which defaults to the value of the project-specific flag -- Owen Shepherd http://www.owenshepherd.net [email protected] (general) / [email protected] (academic) _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
