[CMake] syntax error?

Clinton Stimpson clinton at elemtech.com
Wed Aug 14 18:40:59 EDT 2013


On Wednesday, August 14, 2013 04:25:10 PM David Cole wrote:
> > I'm using cmake from git master as of today and it gives me a warning
> > 
> > CMake Warning (dev) in .../CMakeLists.txt:
> >   Syntax Warning in cmake code at
> >   
> >     /.../CMakeLists.txt:309:10
> 
> I do not get an error with this CMakeLists.txt:
> 
> cmake_minimum_required(VERSION 2.8)
> project(xyz NONE)
> 
> message("MSVC='${MSVC}'")
> message("MSVC_VERSION='${MSVC_VERSION}'")
> 
> if (NOT (MSVC AND (MSVC_VERSION EQUAL 1600)))
>   message("true")
> else()
>   message("false")
> endif()
> 
> 
> I tried with 2.8.11.2 and 'nightly' -- does anybody else see a problem
> with this? Is it possibly something in 'master' that has already been
> fixed in 'nightly'?
> 
> However, MSVC is empty unless I remove the "NONE" from project...
> 
> 
> HTH,
> D

Ah, you introduced a space after the "NOT" to silence the warning.
I'm not sure why it is picky about that space not being there.

-- 
Clinton Stimpson
Elemental Technologies, Inc
Computational Simulation Software, LLC
www.csimsoft.com


More information about the CMake mailing list