[CMake] Enabling C99 in CMake

Todd Gamblin tgamblin at llnl.gov
Wed Jun 22 23:09:44 EDT 2011


On Jun 22, 2011, at 3:46 PM, Michael Hertling wrote:

> Wouldn't a simple
> 
> CC="gcc -std=c99" cmake <path/to/source>
> 
> for the initial configuration be an appropriate solution?

I would say no, because whether or not the project is written in C99 or not isn't something the caller of cmake should have to know.  It's something the developers should know, and whoever is building the code shouldn't have to care.

-Todd

______________________________________________________________________
Todd Gamblin, tgamblin at llnl.gov, http://people.llnl.gov/gamblin2
CASC @ Lawrence Livermore National Laboratory, Livermore, CA, USA



More information about the CMake mailing list