Re: [CMake] add_custom_target and PRE_BUILD commands added in sub-dir not executing

2012-09-12 Thread Brett Delle Grazie
On 12 September 2012 14:50, Rolf Eike Beer wrote: > Am 2012-09-12 12:36, schrieb Brett Delle Grazie: > >> Hi, >> >> I've come across some strange behaviour when using add_custom_target and >> an >> add_custom_command( PRE_BUILD or PRE_LINK ) in nested projects. >> >> We have a number of static an

Re: [CMake] add_custom_target and PRE_BUILD commands added in sub-dir not executing

2012-09-12 Thread Rolf Eike Beer
Am 2012-09-12 12:36, schrieb Brett Delle Grazie: Hi, I've come across some strange behaviour when using add_custom_target and an add_custom_command( PRE_BUILD or PRE_LINK ) in nested projects. We have a number of static analysis checks that were working using cppcheck. The technique was to

[CMake] add_custom_target and PRE_BUILD commands added in sub-dir not executing

2012-09-12 Thread Brett Delle Grazie
Hi, I've come across some strange behaviour when using add_custom_target and an add_custom_command( PRE_BUILD or PRE_LINK ) in nested projects. We have a number of static analysis checks that were working using cppcheck. The technique was to add a non-automatic global custom target called 'all_s