MantisBT - CMake
View Issue Details
0003494CMakeCMakepublic2006-07-08 10:292006-07-11 17:10
Jan Woetzel 
Brad King 
urgentminoralways
closedfixed 
 
 
0003494: ENH: COMPONENTS extension for FIND_PACKAGE( REQUIRED comp1 comp2 ...)
Hi,
(1)
the attached patch implements the variable
<Foo>_FIND_COMPONENTS
which extends
FIND_PACKAGE(Foo QUIET REQUIRED comp1 comp2 ...)
to export a list of the required components.

Find scipts can use FOREACH on this variable to handle an arbitrary number of *unknown* components e.g. via macros.

(2) The patch contains a minor bugfix of Filipe Sousa to ignore QUIET in teh list of component.
QUIET is not added to components on
FIND_PACKAGE(Foo REQUIRED comp1 QUIET comp2)

Please apply to CVS because I want to use this feature in the new FindwxWidgets.cmake to handle optional and contrib libraries and teh Find script does not know which ones really exists.

Jan.
No tags attached.
patch cmFindPackageCommand.cxx.patch (1,585) 1969-12-31 19:00
https://public.kitware.com/Bug/file/570/cmFindPackageCommand.cxx.patch
Issue History

Notes
(0004443)
Brad King   
2006-07-11 17:09   
I'm assigning this bug to myself.
(0004444)
Brad King   
2006-07-11 17:10   
I've applied the patch, slightly modified:

/cvsroot/CMake/CMake/Source/cmFindPackageCommand.cxx,v <-- cmFindPackageCommand.cxx
new revision: 1.19; previous revision: 1.18