MantisBT - CMake
View Issue Details
0012464CMakeModulespublic2011-09-17 16:092011-09-22 16:59
Yury G. Kudryashov 
Alex Neundorf 
normalminoralways
closedfixed 
 
CMake 2.8.6CMake 2.8.6 
0012464: FeatureSummary warns if one tries to replace description with the same string
It makes no sense to warn user if he wants to replace package description with the same string (e.g., as a result of calling find_package() twice).
1. Add a line like

set_package_properties(MyPackage PROPERTIES URL http://myurl [^] DESCRIPTION "desc")

to FindMyPackage.cmake.

2. Call find_package(MyPackage) twice in CMakeLists.txt
The attached patch fixes the problem.
No tags attached.
diff feature-summary-no-warn.diff (1,281) 2011-09-17 16:09
https://public.kitware.com/Bug/file/4055/feature-summary-no-warn.diff
Issue History
2011-09-17 16:09Yury G. KudryashovNew Issue
2011-09-17 16:09Yury G. KudryashovFile Added: feature-summary-no-warn.diff
2011-09-18 06:37Alex NeundorfAssigned To => Alex Neundorf
2011-09-18 06:37Alex NeundorfStatusnew => assigned
2011-09-18 06:37Alex NeundorfCategoryCMake => Modules
2011-09-18 07:05Alex NeundorfNote Added: 0027444
2011-09-18 07:05Alex NeundorfStatusassigned => closed
2011-09-18 07:05Alex NeundorfResolutionopen => fixed
2011-09-22 16:59David ColeFixed in Version => CMake 2.8.6
2011-09-22 16:59David ColeTarget Version => CMake 2.8.6

Notes
(0027444)
Alex Neundorf   
2011-09-18 07:05   
Hi Yury,

thanks for working on FeatureSummary.cmake :-)
I applied the patch and merged it into next.

Alex