MantisBT - CMake
View Issue Details
0014692CMakeModulespublic2014-01-10 02:332014-06-02 08:38
Micha Hergarden 
Stephen Kelly 
normalminoralways
closedfixed 
x86LinuxUbuntu 12.10
CMake 2.8.12 
CMake 3.0CMake 3.0 
0014692: UseQt4.cmake does not adhere to policy CMP0043
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.
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.
No tags attached.
patch UseQt4.patch (1,218) 2014-01-10 02:33
https://public.kitware.com/Bug/file/5043/UseQt4.patch
Issue History
2014-01-10 02:33Micha HergardenNew Issue
2014-01-10 02:33Micha HergardenFile Added: UseQt4.patch
2014-01-10 09:07Brad KingAssigned To => Stephen Kelly
2014-01-10 09:07Brad KingStatusnew => assigned
2014-01-10 09:07Brad KingTarget Version => CMake 3.0
2014-01-10 10:26Clinton StimpsonNote Added: 0034923
2014-01-14 12:31Stephen KellyNote Added: 0034941
2014-01-14 12:31Stephen KellyStatusassigned => resolved
2014-01-14 12:31Stephen KellyFixed in Version => CMake 3.0
2014-01-14 12:31Stephen KellyResolutionopen => fixed
2014-06-02 08:38Robert MaynardNote Added: 0036078
2014-06-02 08:38Robert MaynardStatusresolved => closed

Notes
(0034923)
Clinton Stimpson   
2014-01-10 10:26   
I just updated CMake and tried it on a project. I got *many* instances of this CMP0043 warning for pretty much every CMakeLists.txt file in my project. For some, it was reported multiple times for one CMakeLists.txt file.
(0034941)
Stephen Kelly   
2014-01-14 12:31   
Done:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2509c767 [^]
(0036078)
Robert Maynard   
2014-06-02 08:38   
Closing resolved issues that have not been updated in more than 4 months.