[CMake] How to handle COMPONENT arguments to find_package in my Config file?

Stephen Kelly steveire at gmail.com
Wed Jun 22 13:07:58 EDT 2011


Alexander Neundorf wrote:

> On Wednesday 22 June 2011, Stephen Kelly wrote:
>> Hi,
>> 
>> In my GrantleeConfigVersion.cmake.in I can use ${PACKAGE_FIND_VERSION}
>> which I presume is filled from the find_package command (I just copied
>> the file from elsewhere).
>> 
>> Is there an equivalent for COMPONENTS so that if someone does a
> 
> Beside the find_package() documentation in the cmake man page, those stuff
> is documented in the readme.txt in the CMake module directory.
> 

Hmm, I didn't find it in the output of cmake --help-command find_package, 
but you're right that it's in the readme.txt file. Thanks for the pointer.

Steve.



More information about the CMake mailing list