[CMake] compiler flags visual studio

2012-01-24 Thread Tom Deblauwe

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?


Best regards,
Tom,

--

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


Re: [CMake] compiler flags visual studio

2012-01-24 Thread John Drescher
On Tue, Jan 24, 2012 at 8:33 AM, Tom Deblauwe tom.debla...@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?


No compiler flags support that.

John
--

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