[CMake] syntax error?
David Cole
dlrdave at aol.com
Wed Aug 14 16:25:10 EDT 2013
> 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
More information about the CMake
mailing list