Re: [CMake] Is this the proper way to define a package config?

2014-10-26 Thread Stephen Kelly
Robert Dailey wrote: I've skimmed over it, but I haven't seen anything useful in that section. Maybe you can point out what exactly I'm supposed to use from that? Someone has already stated that I should use a find module and not define a package config since I'm not the maintainer of

Re: [CMake] Is this the proper way to define a package config?

2014-10-25 Thread Stephen Kelly
Robert Dailey wrote: What is the Filters target here? How is it created? Would I just create a target called Boost and configure it as needed? You've read http://www.cmake.org/cmake/help/v3.0/manual/cmake-packages.7.html#creating-packages right? Thanks, Steve. -- Powered by

Re: [CMake] Is this the proper way to define a package config?

2014-10-25 Thread Robert Dailey
I've skimmed over it, but I haven't seen anything useful in that section. Maybe you can point out what exactly I'm supposed to use from that? Someone has already stated that I should use a find module and not define a package config since I'm not the maintainer of boost, I only need to use it.

Re: [CMake] Is this the proper way to define a package config?

2014-10-24 Thread Robert Maynard
As far as I am aware the Boost find module doesn't support writing out import targets. As far as setting up interface libraries for imported tagets you want to use the IMPORTED_LINK_INTERFACE_LIBRARIES and IMPORTED_LINK_INTERFACE_LIBRARIES_CONFIG properties. Here is an example:

Re: [CMake] Is this the proper way to define a package config?

2014-10-24 Thread Robert Dailey
What is the Filters target here? How is it created? Would I just create a target called Boost and configure it as needed? On Fri, Oct 24, 2014 at 2:43 PM, Robert Maynard robert.mayn...@kitware.com wrote: As far as I am aware the Boost find module doesn't support writing out import targets. As

Re: [CMake] Is this the proper way to define a package config?

2014-10-23 Thread Johannes Zarl
Hi, Assuming you are not a boost developer / your changes won't be upstreamed, then creating a BoostConfig.cmake file won't do you much good. If someone wants to use your project, he/she will have to patch the locally installed boost version to include a BoostConfig.cmake file. You might want

Re: [CMake] Is this the proper way to define a package config?

2014-10-23 Thread Robert Dailey
Thanks for the reply! Basically the boost library I have is precompiled and in my own unique structure. I do not plan to distribute the CMake scripts I write, they are for personal / internal usage only. You suggested a find module, but will this also generate a custom target for boost? That's

Re: [CMake] Is this the proper way to define a package config?

2014-10-22 Thread Robert Dailey
Can anyone help me with this? It would be much appreciated. Thank you. On Fri, Oct 17, 2014 at 12:18 AM, Robert Dailey rcdailey.li...@gmail.com wrote: I have a local package of boost built on Windows. It is always relative to the root of my project at a consistent structure and location. I

[CMake] Is this the proper way to define a package config?

2014-10-16 Thread Robert Dailey
I have a local package of boost built on Windows. It is always relative to the root of my project at a consistent structure and location. I wanted to define an import target for this and thought it might be best to define a BoostConfig.cmake package config file at the root of the boost lib