[CMake] How to use FindPackageHandleStandardArgs
Denis Scherbakov
denis_scherbakov at yahoo.com
Thu May 14 05:29:56 EDT 2009
> That's my case as well. I need to find more than one
> library, and it's
> an all or nothing situation. I mean, if any of the
> libraries I'm
> searching for is missing, the package as such cannot be
> used. So, my
> original question still stands:
> How should I pass a list of libraries to
> find_package_handle_standard_args(), where one or more of
> the elements
> of the list may be YYY-NOTFOUND?
Marcel,
If you have 3 variables for libraries and ALL of them
should be present, use
FIND_PACKAGE_HANDLE_STANDARD_ARGS(... LIB1 LIB2 LIB3)
If any of these variables have NOTFOUND suffix, the package will evaluate to FALSE.
Did I get you right?
Denis
More information about the CMake
mailing list