[cmake-developers] [CMake 0014692]: UseQt4.cmake does not adhere to policy CMP0043

Mantis Bug Tracker mantis at public.kitware.com
Fri Jan 10 02:33:52 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14692 
====================================================================== 
Reported By:                Micha Hergarden
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14692
Category:                   Modules
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-01-10 02:33 EST
Last Modified:              2014-01-10 02:33 EST
====================================================================== 
Summary:                    UseQt4.cmake does not adhere to policy CMP0043
Description: 
The cmake version 98bdd78afc4dfce9a6ef02d80a94c4b653ccd0b8 yields the following
warning when Qt4 is used in a project:

  Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
  Run "cmake --help-policy CMP0043" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

The attached patch seems to fix this.

Steps to Reproduce: 
Create a minial cmake project that uses Qt4 and use the above mentioned cmake
version to configure it with. NOTE: I only tested using the Make generator.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-01-10 02:33 Micha HergardenNew Issue                                    
2014-01-10 02:33 Micha HergardenFile Added: UseQt4.patch                     
======================================================================




More information about the cmake-developers mailing list