[cmake-developers] [partial duplicate of users mailing list] SelectLibraryConfigurations
Adam Rankin
arankin at robarts.ca
Wed Feb 3 14:39:21 EST 2016
Ah, gotcha.
So, is it expected that each project in a client's package will call find_package(xyz)?
I am used to the top level CMakeLists finding all the dependencies, and then passing the information down into projects. I am happy to update our system behavior to match what is more correct.
Adam
-----Original Message-----
From: Brad King [mailto:brad.king at kitware.com]
Sent: Wednesday, February 03, 2016 1:36 PM
To: Adam Rankin <arankin at robarts.ca>
Cc: cmake-developers at cmake.org
Subject: Re: [cmake-developers] [partial duplicate of users mailing list] SelectLibraryConfigurations
On 02/03/2016 01:03 PM, Adam Rankin wrote:
> Is there documentation on best practices for writing findxyz modules?
There is a section in the cmake-developer manual:
https://cmake.org/cmake/help/v3.5/manual/cmake-developer.7.html#find-modules
> How does a client determine the target names that are imported after
> calling find_package?
Client authors should read the module documentation, just as they might to see the list of provided variables.
-Brad
More information about the cmake-developers
mailing list