Re: [CMake] Adding dependencies to the `clean` target in 2016?

2016-12-09 Thread Brad King
On 12/09/2016 08:18 AM, Dan Liew wrote: > CMake has special commands for doing `install` so I'd expect something > analogous for managing how `clean is performed`. CMake has full control over the generation of the install rules. For "clean" this is only true for the Makefile generator. >> think s

Re: [CMake] Adding dependencies to the `clean` target in 2016?

2016-12-09 Thread Dan Liew
On 5 December 2016 at 14:05, Brad King wrote: > On 12/03/2016 06:52 AM, Dan Liew wrote: >> There was a post about this 10 years ago [1], has anything changed since >> then? > > No. From my response back then: > >>> The "clean" target is not a first class target available to >>> CMakeLists.txt co

Re: [CMake] Adding dependencies to the `clean` target in 2016?

2016-12-05 Thread Brad King
On 12/03/2016 06:52 AM, Dan Liew wrote: > There was a post about this 10 years ago [1], has anything changed since then? No. From my response back then: >> The "clean" target is not a first class target available to >> CMakeLists.txt codeWe do plan to make targets like install >> and clean f

[CMake] Adding dependencies to the `clean` target in 2016?

2016-12-03 Thread Dan Liew
Hi, As part of a project I work on we use CMake's `ExternalProject()` to build a set of runtime libraries that the project needs via a second build system (Makefile based) that knows how to build the runtime libraries. The code (which is full of hacks... sorry) is at [1]. What I want to do is whe