Policy CM0054 warning from CMakeDetermineASMCompiler.cmake
My environment:
- OS: Windows 10 x64
- CMake version:
v3.9.20170712-g1336a
- Generator used: Visual Studio 2015
When running CMake GUI where a script invokes enable_language(ASM_MASM)
, I get the following warning:
CMake Warning (dev) at E:/Program Files/CMake/share/cmake-3.9/Modules/CMakeDetermineASMCompiler.cmake:106 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
E:/Program Files/CMake/share/cmake-3.9/Modules/CMakeDetermineASM_MASMCompiler.cmake:17 (include)
Core/ThirdParty/boost/boost-cmake/libs/context.cmake:15 (enable_language)
Core/ThirdParty/boost/boost-cmake/CMakeLists.txt:63 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
This seems to be coming from one of the internal CMake modules and I have no apparent control over it. Is this a bug? My minimum required is set to:
cmake_minimum_required( VERSION 3.8.0 )