[CMake] Enabling C99 in CMake

Jed Brown jed at 59A2.org
Thu Jun 23 12:20:46 EDT 2011


On Thu, Jun 23, 2011 at 17:50, Michael Hertling <mhertling at online.de> wrote:

> You need to use a C99 compiler for your project


This is already a problem. C99 introduces new keywords (e.g. restrict) and
removes implicit int. It is entirely possible for part of a project to
include C89-conforming legacy code that is not valid C99. The use of C99 or
C89 should be a file- and directory-level property.

It's also horrible to encumber the poor user just trying to build your
project with needing to know whether it is written in C99 or whatever else,
nor with how to make their compiler deliver that dialect.

CMake does not ask the user to provide the full command to link a shared
library, it should not require the user to specify dialect C99/C89.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110623/9ce64a22/attachment.htm>


More information about the CMake mailing list