[cmake-developers] [CMake 0015571]: CheckTypeSize causes a CMP0054 warning
Mantis Bug Tracker
mantis at public.kitware.com
Sat May 16 16:18:09 EDT 2015
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15571
======================================================================
Reported By: grahamb
Assigned To:
======================================================================
Project: CMake
Issue ID: 15571
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-05-16 16:18 EDT
Last Modified: 2015-05-16 16:18 EDT
======================================================================
Summary: CheckTypeSize causes a CMP0054 warning
Description:
Using CheckTypeSize with CMake >= 3.1 causes a CMP0054 warning.
Setting the policy in the module to VERSION 3.1 fixes the issue. There may be
other modules similarly afflicted.
Steps to Reproduce:
Any use of CheckTypeSize, e.g.
check_type_size(off64_t OFF64_T)
Additional Information:
Sample output:
CMake Warning (dev) at
C:/ProgramData/Chocolatey/lib/cmake.3.1.3/content/cmake-3.1.3-win32-x86/share/cmake-3.1/Modules/CheckTypeSize.cmake:232
(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 "C" 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):
C:/buildbot/wireshark/wireshark-master-32/Wireshark-win32-libs/zlib-1.2.8/CMakeLists.txt:43
(check_type_size)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at
C:/ProgramData/Chocolatey/lib/cmake.3.1.3/content/cmake-3.1.3-win32-x86/share/cmake-3.1/Modules/CheckTypeSize.cmake:115
(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 "C" 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):
C:/ProgramData/Chocolatey/lib/cmake.3.1.3/content/cmake-3.1.3-win32-x86/share/cmake-3.1/Modules/CheckTypeSize.cmake:249
(__check_type_size_impl)
C:/buildbot/wireshark/wireshark-master-32/Wireshark-win32-libs/zlib-1.2.8/CMakeLists.txt:43
(check_type_size)
This warning is for project developers. Use -Wno-dev to suppress it.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-05-16 16:18 grahamb New Issue
======================================================================
More information about the cmake-developers
mailing list