Re: [CMake] problem with add_custom_command / add_custom_target in different directories

2009-03-30 Thread Brad King
James Bigler wrote: I filed a documentation bug: http://public.kitware.com/Bug/view.php?id=8815 I've committed documentation and updated the bug entry. BTW, is there a particular reason why custom commands are only registered in the directory where they appear? They seem kind of like the lit

Re: [CMake] problem with add_custom_command / add_custom_target in different directories

2009-03-29 Thread James Bigler
On Wed, Feb 25, 2009 at 7:54 AM, Brad King wrote: > Michael Wild wrote: >> >> On 25. Feb, 2009, at 7:25, Philip Lowman wrote: >>> >>> When I invoke add_custom_target() in the >>> parent directory it causes an error in the makefiles. >> >> To me this appears to be a bug in the Makefile generator. I

Re: [CMake] problem with add_custom_command / add_custom_target in different directories

2009-02-26 Thread Brad King
Philip Lowman wrote: Brad King wrote: I suggest making the extraction rule generate a stamp file with "cmake -E touch ...". Thanks for pointing out those two problems. Not too worried about either of them at the moment given what this is intended for. Another thing did concern me which was

Re: [CMake] problem with add_custom_command / add_custom_target in different directories

2009-02-25 Thread Philip Lowman
On Wed, Feb 25, 2009 at 8:54 AM, Brad King wrote: > > What works for me (CMake-CVS, Mac OS X 10.5, Makefile generator) is the >> following: >> - add an empty custom target "untar" with no dependencies to >> CMakeLists.txt BEFORE any of the add_subdirectory calls >> - in the test/CMakeLists.txt a

Re: [CMake] problem with add_custom_command / add_custom_target in different directories

2009-02-25 Thread Brad King
Michael Wild wrote: On 25. Feb, 2009, at 7:25, Philip Lowman wrote: When I invoke add_custom_target() in the parent directory it causes an error in the makefiles. To me this appears to be a bug in the Makefile generator. I also tried to make a "untarFoo" custom target in test/CMakeLists.txt, wh

Re: [CMake] problem with add_custom_command / add_custom_target in different directories

2009-02-25 Thread Michael Wild
On 25. Feb, 2009, at 7:25, Philip Lowman wrote: I'm trying to come up with a way to have a custom target defined in the top-level directory execute a collection of custom commands previously defined in subdirectories throughout the code (to untar many tarballs). Unfortunately, the approach

[CMake] problem with add_custom_command / add_custom_target in different directories

2009-02-24 Thread Philip Lowman
I'm trying to come up with a way to have a custom target defined in the top-level directory execute a collection of custom commands previously defined in subdirectories throughout the code (to untar many tarballs). Unfortunately, the approach I'm trying isn't working. When I invoke add_custom_targ