MantisBT - CMake
View Issue Details
0002771CMakeCMakepublic2006-01-27 10:292006-01-27 13:09
Filipe Sousa 
Brad King 
lowfeaturealways
closedfixed 
 
 
0002771: Enhancement of FIND_PACKAGE
I'm thinking we could extend REQUIRED parameter from FIND_PACKAGE to be
more specific. Some packages have a lot of libraries and we may not need
all them. Something like FIND_PACKAGE(Qt4 REQUIRED GUI XML SQL) should
define Qt4_FIND_REQUIRED-GUI, Qt4_FIND_REQUIRED-XML and
Qt4_FIND_REQUIRED-SQL
No tags attached.
diff cmFindPackageCommand.cxx.diff (701) 1969-12-31 19:00
https://public.kitware.com/Bug/file/449/cmFindPackageCommand.cxx.diff
Issue History

Notes
(0003607)
   
2006-01-27 13:08   
I'm assigning this bug to myself. I've implemented the feature and updated the documentation of the FIND_PACKAGE command and in the Modules/readme.txt.

Here are the changes:

/cvsroot/CMake/CMake/Modules/readme.txt,v <-- readme.txt
new revision: 1.7; previous revision: 1.6
/cvsroot/CMake/CMake/Source/cmFindPackageCommand.cxx,v <-- cmFindPackageCommand.cxx
new revision: 1.16; previous revision: 1.15
/cvsroot/CMake/CMake/Source/cmFindPackageCommand.h,v <-- cmFindPackageCommand.h
new revision: 1.10; previous revision: 1.9

The only difference is that I replaced the "-" before the suffix with "_" to be more consistent with CMake naming conventions. Read the new documentation for details.
(0003608)
Brad King   
2006-01-27 13:09   
I'm assigning this bug to myself. I've made the changes and updated the documentation. Here are the changes:

/cvsroot/CMake/CMake/Modules/readme.txt,v <-- readme.txt
new revision: 1.7; previous revision: 1.6
/cvsroot/CMake/CMake/Source/cmFindPackageCommand.cxx,v <-- cmFindPackageCommand.cxx
new revision: 1.16; previous revision: 1.15
/cvsroot/CMake/CMake/Source/cmFindPackageCommand.h,v <-- cmFindPackageCommand.h
new revision: 1.10; previous revision: 1.9

The only difference is I've replaced the "-" with an "_" before the component-name suffix to be more consistent with CMake naming conventions.