[CMake] FIND_PACKAGE

Brad King brad.king at kitware.com
Fri Mar 4 13:21:02 EST 2005


David Somers wrote:
> Is there any information on how to use the major.minor options when using 
> FIND_PACKAGE? I'm putting together a FindXXX.cmake file so would like to be 
> able to use this facility to switch in different versions.

The major.minor options are placeholders.  They are currently unused and 
are ignored.  You can communicate with your find module by using variables:

SET(XXX_REQUESTED_VERSION 1.3)
FIND_PACKAGE(XXX)

-Brad


More information about the CMake mailing list