View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011217CMakeDocumentationpublic2010-09-09 03:412012-03-06 08:37
ReporterAndrea Rivetta 
Assigned ToDavid Cole 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionno change required 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in VersionCMake 2.8.7 
Summary0011217: find_package description
DescriptionThere isn't any reference on documentation how to retreive in "module" mode all parameters passed to find_package(<moduleName> params ..) inside the Find<moduleName>.cmake file.
Additional InformationAdd this if it is correct.

If you use the signature like:
find_package(<moduleName> [<major>[.<minor>[.<patch>[.<tweak>]]]] [EXACT][QUIET] [[REQUIRED|COMPONENTS] [<components> ..]] )

inside Find<module>.cmake you can check and verify all parameters using the following temporary variables:
<moduleName>_FIND_VERSION = <major>[.<minor>[.<patch>[.<tweak>]]]
<moduleName>_FIND_VERSION_MAJOR = <major>
<moduleName>_FIND_VERSION_MINOR = <minor>
<moduleName>_FIND_VERSION_PATCH = <patch>
<moduleName>_FIND_VERSION_TWEAK = <tweak>
<moduleName>_FIND_EXACT = true if [EXACT]
<moduleName>_FIND_QUIELTY = true if [QUIET]
<moduleName>_FIND_REQUIRED = true if [REQUIRED]
<moduleName>_FIND_COMPONENTS = <components>
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0024963)
Alex Neundorf (developer)
2011-01-20 13:45

That information is in the readme.txt in CMakes module directory.

Alex
(0025085)
David Cole (manager)
2011-01-26 09:33

Since this information is already available in CMake/Modules/readme.txt, where would you suggest that we add a copy or a link to this information to make it clearer for you?

In the output of "cmake --help-command find_package"? (maybe people would look here, maybe not)

In each and every Find module? (unrealistic, I think)

It is expected that people writing Find modules will understand the system sufficiently to write a good Find module by:
- reading CMake/Modules/readme.txt
- inspecting other Find modules to get a sense of "in practice" usage
- investigating the actual C++ source code of the find_package command itself
- asking questions on the CMake mailing lists (users and developers)

I'd like to resolve this bug by adding some documentation for you to make this more clear...... but I'm not sure where to add it.

Do you have a suggestion?

Thanks,
David
(0027645)
David Cole (manager)
2011-10-25 22:42

see previous notes for details
(0028831)
David Cole (manager)
2012-03-06 08:37

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

 Issue History
Date Modified Username Field Change
2010-09-09 03:41 Andrea Rivetta New Issue
2011-01-20 13:45 Alex Neundorf Note Added: 0024963
2011-01-26 09:29 David Cole Assigned To => David Cole
2011-01-26 09:29 David Cole Status new => assigned
2011-01-26 09:33 David Cole Note Added: 0025085
2011-10-25 22:42 David Cole Note Added: 0027645
2011-10-25 22:42 David Cole Status assigned => resolved
2011-10-25 22:42 David Cole Fixed in Version => CMake 2.8.7
2011-10-25 22:42 David Cole Resolution open => no change required
2012-03-06 08:37 David Cole Note Added: 0028831
2012-03-06 08:37 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team