[CMake] Question about c99
Filipe Sousa
filipe at ipb.pt
Sat Apr 1 12:10:05 EST 2006
On Saturday 01 April 2006 17:59, David wrote:
> Hello,
>
> This might be a stupid question but I'm new to c and cmake so I don't know
> much about it yet.
>
> I would like to be able to use the for construct like this:
> for(int i = 0; ...,
> if I understand correctly I need c99 for this. I think I also need it for
> the bool keyword. Is this correct?
http://gcc.gnu.org/gcc-4.1/c99status.html
> Do you know how I can tell cmake to compile my program as c99?
>
> Currently my CMakeLists.txt looks like this:
>
> PROJECT(UFO C)
SET(CMAKE_C_FLAGS "-std=c99")
> LINK_LIBRARIES(readline)
> ADD_EXECUTABLE(ufo ufo.c)
>
> Thanks,
> David
--
Filipe Sousa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060401/c473d30d/attachment.pgp
More information about the CMake
mailing list