Review Request 123477: Add public dependency on NetworkManager

Lamarque Souza lamarque at kde.org
Thu Apr 23 15:41:00 UTC 2015



On April 23, 2015, 1:35 p.m., Jan Grulich wrote:
> > And yes, this is required as long as NetworkManager headers are included by NetworkManagerQt headers.
> 
> Jan Grulich wrote:
>     I just found out that installing FindNetworkManager.cmake into CMake modules is not enough, because it still cannot find it. I guess this would have to be done according to other FindFoo.cmake modules from extra-cmake-modules, right?
> 
> Aleix Pol Gonzalez wrote:
>     That would certainly help, but then it's not very nice putting a cmake file into another project's directory.
>     I would suggest to either:
>     
>     * Contribute FindNetworkManager.cmake to extra-cmake-modules
>     * Install it within the NetworkManagerQt cmake directory, together with NetworkManagerQtConfig.cmake.
> 
> Jan Grulich wrote:
>     I actually didn't mean that I should install it to ../ECM/modules, but whether using find_package_handle_standard_args() and other macros, which are used in all FindFoo.cmake modules from e-c-m, are required to make this work.
> 
> Aleix Pol Gonzalez wrote:
>     Not required per se, but recommended. There's many things to be defined on a proper cmake finder.
>     OTOH, this finder seems to be working already.

I would go for moving FindNetworkManager.cmake to e-c-m.


- Lamarque


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/123477/#review79383
-----------------------------------------------------------


On April 23, 2015, 1:01 p.m., Jan Grulich wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/123477/
> -----------------------------------------------------------
> 
> (Updated April 23, 2015, 1:01 p.m.)
> 
> 
> Review request for KDE Frameworks, David Faure, Daniel Vrátil, and Lamarque Souza.
> 
> 
> Repository: networkmanager-qt
> 
> 
> Description
> -------
> 
> I'm not 100% sure how this should work and I couldn't find another framework doing the same, but Daniel Vrátil pointed me out that NetworkManagerQt should mention in KF5NetworkManagerQtConfig.cmake file that it requires NetworkManager as dependency. Given this, we also need to install FindNetworkManager.cmake into CMake modules so NetworkManager can be found by find_dependency() macro, or FindNetworkManager.cmake can go into extra-cmake-modules.
> 
> If this is how it should be done, then similar patch would be needed for ModemManagerQt.
> 
> 
> Diffs
> -----
> 
>   CMakeLists.txt c9e3274 
>   KF5NetworkManagerQtConfig.cmake.in cdabe8e 
> 
> Diff: https://git.reviewboard.kde.org/r/123477/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Jan Grulich
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20150423/d0dd124f/attachment.html>


More information about the Kde-frameworks-devel mailing list