View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014692CMakeModulespublic2014-01-10 02:332014-06-02 08:38
ReporterMicha Hergarden 
Assigned ToStephen Kelly 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
Platformx86OSLinuxOS VersionUbuntu 12.10
Product VersionCMake 2.8.12 
Target VersionCMake 3.0Fixed in VersionCMake 3.0 
Summary0014692: UseQt4.cmake does not adhere to policy CMP0043
DescriptionThe 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 ReproduceCreate 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.
TagsNo tags attached.
Attached Filespatch file icon UseQt4.patch [^] (1,218 bytes) 2014-01-10 02:33 [Show Content]

 Relationships

  Notes
(0034923)
Clinton Stimpson (developer)
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 (developer)
2014-01-14 12:31

Done:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2509c767 [^]
(0036078)
Robert Maynard (manager)
2014-06-02 08:38

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-01-10 02:33 Micha Hergarden New Issue
2014-01-10 02:33 Micha Hergarden File Added: UseQt4.patch
2014-01-10 09:07 Brad King Assigned To => Stephen Kelly
2014-01-10 09:07 Brad King Status new => assigned
2014-01-10 09:07 Brad King Target Version => CMake 3.0
2014-01-10 10:26 Clinton Stimpson Note Added: 0034923
2014-01-14 12:31 Stephen Kelly Note Added: 0034941
2014-01-14 12:31 Stephen Kelly Status assigned => resolved
2014-01-14 12:31 Stephen Kelly Fixed in Version => CMake 3.0
2014-01-14 12:31 Stephen Kelly Resolution open => fixed
2014-06-02 08:38 Robert Maynard Note Added: 0036078
2014-06-02 08:38 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team