<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi there,<br>
    <br>
    CMake 3.1 (both release candidates) now generate a CMP0054 warning
    when configuring the following CMakeLists.txt in a clean build
    folder with MSVC as the generator:<br>
    <br>
    <code>cmake_minimum_required(VERSION 2.8)</code><code><br>
    </code><code>enable_language(ASM_MASM)</code><code><br>
    </code><br>
    The warning is:<br>
    <br>
    <code>CMake Warning (dev) at E:/Program Files (x86)/CMake
      3/share/cmake-3.1/Modules/CMakeFindBinUtils.cmake:33 (if):</code><code><br>
    </code><code>  Policy CMP0054 is not set: Only interpret if()
      arguments as variables or</code><code><br>
    </code><code>  keywords when unquoted.  Run "cmake --help-policy
      CMP0054" for policy</code><code><br>
    </code><code>  details.  Use the cmake_policy command to set the
      policy and suppress this</code><code><br>
    </code><code>  warning.</code><code><br>
    </code><code><br>
    </code><code>  Quoted variables like "MSVC" will no longer be
      dereferenced when the policy</code><code><br>
    </code><code>  is set to NEW.  Since the policy is not set the OLD
      behavior will be used.</code><code><br>
    </code><br>
    I can see the file in question has been updated (presumably since
    RC2) to not quote the left-hand variables:<br>
    <a class="moz-txt-link-freetext"
href="http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/CMakeFindBinUtils.cmake;h=50cb9721272f98bc2ffe73e95ae57c3156251188;hb=HEAD">http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/CMakeFindBinUtils.cmake;h=50cb9721272f98bc2ffe73e95ae57c3156251188;hb=HEAD</a><br>
    but even with these updates, the quoted "MSVC" args generate the
    warning.<br>
    <br>
    I've attached a trivial patch removing all remaining instances of
    quoted "MSVC"s.<br>
    <br>
    Cheers,<br>
    Fraser.<br>
    <br>
  </body>
</html>