[CMake] MSVC variable doesn't work without project() call first

2011-11-01 Thread Robert Dailey
For some reason the built in variable like MSVC_VERSION and MSVC do not have any value unless the project() command is called first. Can someone explain why? - Robert Dailey -- Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] MSVC variable doesn't work without project() call first

2011-11-01 Thread Alexander Neundorf
On Tuesday 01 November 2011, Robert Dailey wrote: For some reason the built in variable like MSVC_VERSION and MSVC do not have any value unless the project() command is called first. Can someone explain why? Without checking... IIRC, the project() call enables by default the C and the CXX

Re: [CMake] MSVC variable doesn't work without project() call first

2011-11-01 Thread David Cole
On Tue, Nov 1, 2011 at 11:22 AM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Tuesday 01 November 2011, Robert Dailey wrote: For some reason the built in variable like MSVC_VERSION and MSVC do not have any value unless the project() command is called first. Can someone explain why?