[CMake] CPack disable build all

2018-11-09 Thread DKLind
I have a very large project where each sub-project creates a debian package. When "make/ninja package" is specified, it performs a "make/ninja all" before packaging. I would prefer to perform a "make/ninja all" myself before I doing a "make/ninja package". I want to create a package for just one

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 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 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-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.

[CMake] Replace default "make all" with "make help"

2017-08-02 Thread DKLind
Is it possible to replace the default target of the "Unix Makefiles" generated Makefile of 'all' with 'help'? By default, I mean when no target is specified when invoking 'make', the 'all' target is assumed. -- View this message in context:

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 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

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

2017-07-21 Thread 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:

Re: [CMake] add_custom_target: COMMAND embedded make code

2017-02-24 Thread DKLind
Solved problem from another post with similar space escaping. set(PARAMS "$(if $(verbose), --verbose)" "$(if $(xml-output), --xml-output)" "$(if $(run), --run=$(run))" "$(if $(suite), --suite=$(suite))" ) string(REPLACE " " ";" PARAMS ${PARAMS})

[CMake] Create custom "make help"

2016-12-30 Thread DKLind
Is there a way to create a custom help that is displayed with "make help"? I have tried to implement this using the instructions in this thread: add_custom_target(HelpMe COMMAND ${CMAKE_COMMAND}