View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003494CMakeCMakepublic2006-07-08 10:292006-07-11 17:10
ReporterJan Woetzel 
Assigned ToBrad King 
PriorityurgentSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0003494: ENH: COMPONENTS extension for FIND_PACKAGE( REQUIRED comp1 comp2 ...)
DescriptionHi,
(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.
TagsNo tags attached.
Attached Filespatch file icon cmFindPackageCommand.cxx.patch [^] (1,585 bytes) 1969-12-31 19:00 [Show Content]

 Relationships

  Notes
(0004443)
Brad King (manager)
2006-07-11 17:09

I'm assigning this bug to myself.
(0004444)
Brad King (manager)
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

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team