Re: [CMake] CPack: Create debian packge for each sub-project

2017-12-04 Thread Domen Vrankar
2017-12-04 20:35 GMT+01:00 DKLind : > Domen Vrankar wrote > > I'm a bit confused. Is there something missing in the patch? > > Attached patch only adds per component version override - it doesn't even > > touch the multiple calls to `include(CPack)` and naming of different >

Re: [CMake] CPack: Create debian packge for each sub-project

2017-12-04 Thread DKLind
Domen Vrankar wrote > I'm a bit confused. Is there something missing in the patch? > Attached patch only adds per component version override - it doesn't even > touch the multiple calls to `include(CPack)` and naming of different > packages (not their components but different package names). > >

Re: [CMake] CPack: Create debian packge for each sub-project

2017-12-04 Thread Domen Vrankar
2017-12-04 19:57 GMT+01:00 DKLind : > Domen Vrankar wrote > > product_1-component_1-1.0.0 > > product_1-component_2-1.0.0 > > product_2-component_1-3.5.7 > > product_2-component_2-3.5.7 > > This too is what my patch fixes. Attached is the patch. > > CPackDeb.patch >

Re: [CMake] CPack: Create debian packge for each sub-project

2017-12-04 Thread DKLind
Domen Vrankar wrote > product_1-component_1-1.0.0 > product_1-component_2-1.0.0 > product_2-component_1-3.5.7 > product_2-component_2-3.5.7 This too is what my patch fixes. Attached is the patch. CPackDeb.patch -- Sent from:

Re: [CMake] CPack: Create debian packge for each sub-project

2017-12-01 Thread Domen Vrankar
2017-12-01 18:04 GMT+01:00 Domen Vrankar : > 2017-12-01 16:47 GMT+01:00 DKLind : > >> This is precisely my situation. I have a large project where 50+ packages >> are >> generated. I wanted, needed, to be able to set each packages' version >>

Re: [CMake] CPack: Create debian packge for each sub-project

2017-12-01 Thread Domen Vrankar
2017-12-01 16:47 GMT+01:00 DKLind : > This is precisely my situation. I have a large project where 50+ packages > are > generated. I wanted, needed, to be able to set each packages' version > uniquely. Using the CPACK_DEBAIN__PACKAGE_VERSION variable > seemed > to be the

Re: [CMake] CPack: Create debian packge for each sub-project

2017-12-01 Thread Domen Vrankar
2017-12-01 5:41 GMT+01:00 Craig Scott : > > > On Fri, Dec 1, 2017 at 11:15 AM, Domen Vrankar > wrote: > >> 2017-11-29 17:07 GMT+01:00 DKLind : >> >>> I have finally found time to work on a patch so >>>

Re: [CMake] CPack: Create debian packge for each sub-project

2017-12-01 Thread DKLind
This is precisely my situation. I have a large project where 50+ packages are generated. I wanted, needed, to be able to set each packages' version uniquely. Using the CPACK_DEBAIN__PACKAGE_VERSION variable seemed to be the correct way, except it doesn't work. My patch allows

Re: [CMake] CPack: Create debian packge for each sub-project

2017-11-30 Thread Craig Scott
On Fri, Dec 1, 2017 at 11:15 AM, Domen Vrankar wrote: > 2017-11-29 17:07 GMT+01:00 DKLind : > >> I have finally found time to work on a patch so >> CPACK_DEBAIN__PACKAGE_VERSION is recognized. I am amazed how >> simple the fix actually is. >> >> I

Re: [CMake] CPack: Create debian packge for each sub-project

2017-11-30 Thread Domen Vrankar
2017-11-29 17:07 GMT+01:00 DKLind : > I have finally found time to work on a patch so > CPACK_DEBAIN__PACKAGE_VERSION is recognized. I am amazed how > simple the fix actually is. > > I plan on submitting a formal patch soon for Debian and RPM. I don't know > anything about

Re: [CMake] CPack: Create debian packge for each sub-project

2017-11-29 Thread DKLind
I have finally found time to work on a patch so CPACK_DEBAIN__PACKAGE_VERSION is recognized. I am amazed how simple the fix actually is. I plan on submitting a formal patch soon for Debian and RPM. I don't know anything about other CMake packaging features that might benefit from this patch.

Re: [CMake] CPack: Create debian packge for each sub-project

2017-07-24 Thread DKLind
Here's a little trick I learned. Executing the custom target, "make package_target target=xyz", will build the target and call cpack to create the package. Additional parameters can be passed by putting the target value in quotes (make package_target target="xyz -j4"). Executing cpack causes the

Re: [CMake] CPack: Create debian packge for each sub-project

2017-07-23 Thread Craig Scott
On Mon, Jul 24, 2017 at 6:13 AM, Gonzalo Garramuño wrote: > > > El 23/07/17 a las 12:37, DKLind escribió: > >> I forgot, I also have a question about "make package". How do I build and >> package just an individual sub-project. As expected, "make " >> works to build, but

Re: [CMake] CPack: Create debian packge for each sub-project

2017-07-23 Thread Gonzalo Garramuño
El 23/07/17 a las 12:37, DKLind escribió: I forgot, I also have a question about "make package". How do I build and package just an individual sub-project. As expected, "make " works to build, but there isn't a default target to package an individual sub-project. AFAIK, it is not possible. I

Re: [CMake] CPack: Create debian packge for each sub-project

2017-07-23 Thread Domen Vrankar
2017-07-23 17:19 GMT+02:00 DKLind : > Also, curious why CPACK_*COMPONENT*__DESCRIPTION is different > from the other CPACK_*DEBIAN*__PACKAGE_XXX? > Most variables are debian package specific/allow to override general CPack variables specifically for debian packages. For

Re: [CMake] CPack: Create debian packge for each sub-project

2017-07-23 Thread DKLind
I forgot, I also have a question about "make package". How do I build and package just an individual sub-project. As expected, "make " works to build, but there isn't a default target to package an individual sub-project. -- View this message in context:

Re: [CMake] CPack: Create debian packge for each sub-project

2017-07-23 Thread DKLind
Domen, Thanks for the reply to my question. I was aware of the Debian packaging generator page and I also was already setting the component value to uppercase. As documented, I had to use PARENT_SCOPE when setting CPACK_DEBIAN__PACKAGE_XXX values from sub-projects' CMakeLists.txt. Also, curious

Re: [CMake] CPack: Create debian packge for each sub-project

2017-07-21 Thread Domen Vrankar
2017-07-22 1:55 GMT+02:00 DKLind : > I have a large project and I need to create a Debian package for each > sub-project (essentially each add_subdirectory). > > I have been experimenting with CPack components as outlined here: >