Re: [CMake] touch flag once all (target) sucess

2011-08-12 Thread t m
 I would like to touch flag file in the CMAKE_BINARY_DIR once the
 target all is executed with sucess.
 Since currently I'm not able to specify the dependency to this
 build-in target I do not have any hook to recognize if all sucess and
 1. Does anyone knows any hint that can help me with this issue
 2. Question to CMake developers/maintainers: Is there any plan  to
 implement this ticket in near future:
 http://www.cmake.org/Bug/view.php?id=8438#c26520
 The only way I can think of is to provide custom functions for
 add_library, add_executable and add_custom_target (if you use the same
 name, the original commands are available by appending a underscore to
 the name) which add a dependency of you flag target on all the other
 targets.


Thank you for feedback Michael. I take care about maintaing a bunch of
common cmake scripts for group of developers.
The workflow is a little bit complicated to describe it in short. I
just need to know
the compilation status form other processes that call: make all and
make package.
Therefore I think simply file flag is the best choice. I don't wont to
make it in wrapper
for make and I'm looking for solution in cmake.

The implementation of this ticket
http://www.cmake.org/Bug/view.php?id=8438#c26520 will help me.
However this is 2,5 years old ticket so I'm looking for some time
being solution.

Thanks, T. Majchrowski.
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] touch flag once all (target) sucess

2011-08-11 Thread t m
 Hi All,

 I would like to touch flag file in the CMAKE_BINARY_DIR once the
 target all is executed with sucess.
 Since currently I'm not able to specify the dependency to this
 build-in target I do not have any hook to recognize if all sucess and
 to touch file.

 1. Does anyone knows any hint that can help me with this issue
 2. Question to CMake developers/maintainers: Is there any plan  to
 implement this ticket in near future:
 http://www.cmake.org/Bug/view.php?id=8438#c26520

 regards, T Majchrowski.

Hi All,

Does anyone knows any workarround for touching this flag till issue
will be solved ?
Thanks.

regards, T Majchrowski.
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] touch flag once all (target) sucess

2011-08-11 Thread Michael Wild
On Thu 11 Aug 2011 09:44:00 AM CEST, t m wrote:
 Hi All,

 I would like to touch flag file in the CMAKE_BINARY_DIR once the
 target all is executed with sucess.
 Since currently I'm not able to specify the dependency to this
 build-in target I do not have any hook to recognize if all sucess and
 to touch file.

 1. Does anyone knows any hint that can help me with this issue
 2. Question to CMake developers/maintainers: Is there any plan  to
 implement this ticket in near future:
 http://www.cmake.org/Bug/view.php?id=8438#c26520

 regards, T Majchrowski.
 
 Hi All,
 
 Does anyone knows any workarround for touching this flag till issue
 will be solved ?
 Thanks.
 
 regards, T Majchrowski.

The only way I can think of is to provide custom functions for 
add_library, add_executable and add_custom_target (if you use the same 
name, the original commands are available by appending a underscore to 
the name) which add a dependency of you flag target on all the other 
targets.

What do you need it for?

Michael
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake