Re: [CMake] How to execute an external project target as part of a standard target.

2015-03-24 Thread David Cole via CMake
How about: add_custom_target(custom-install DEPENDS xxx-install) and cmake --build . --target custom-install ?? The problem is that you are adding a custom target with the name install which is one that CMake generates for you. (Names to be avoided are all, clean, install, package,

Re: [CMake] How to execute an external project target as part of a standard target.

2015-03-24 Thread Bill Somerville
On 24/03/2015 19:00, Bill Somerville wrote: snip Maybe, but I need to have the 'install' target run when I am running the custom 'source' target of the outer project. Should have read: Maybe, but I need to have the 'install' target NOT run when I am running the custom 'source' target of the

Re: [CMake] How to execute an external project target as part of a standard target.

2015-03-24 Thread Bill Somerville
On 24/03/2015 18:31, David Cole wrote: Hi David, How about: add_custom_target(custom-install DEPENDS xxx-install) and cmake --build . --target custom-install ?? OK that does work but I wanted the project to have a normal set of targets. The issue is that the ExternalProject in

Re: [CMake] How to execute an external project target as part of a standard target.

2015-03-24 Thread Bill Somerville
On 13/03/2015 14:06, Bill Somerville wrote: Hi All, I have a superbuild style project consisting of a few external projects. I wish to build the install target of one of them as part of the install target of the parent project. I had it working by adding a step target called install and

[CMake] How to execute an external project target as part of a standard target.

2015-03-13 Thread Bill Somerville
Hi All, I have a superbuild style project consisting of a few external projects. I wish to build the install target of one of them as part of the install target of the parent project. I had it working by adding a step target called install and adding a custom target to the parent project that