[CMake] compiler flags visual studio

Klaim - Joël Lamotte mjklaim at gmail.com
Wed Jan 25 01:24:32 EST 2012


On Tue, Jan 24, 2012 at 14:33, Tom Deblauwe <tom.deblauwe at traficon.com>wrote:

> Hello,
>
> What compiler flags do you need to enable if you want to use the
> possibility to have something like this in your code:
>
> char Image[width(), height()];
>
> This worked before with my compiler(visual studio 2005) but not with the
> cmake generated project. It complains about expecting a constant
> expression. Anybody knows?
>
>
That is not valid C or C++ code (once they were standardized at least).
Just use * instead of , and it will do what I guess you want. I think the
code didn't do what you wanted before...

Joël Lamotte
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120125/7d83a4c6/attachment.htm>


More information about the CMake mailing list