I might have missed the beginning of this thread, but I think that lib/manta.py is properly rebuilt when a change is made in the corresponding swig .i file or to a header--is this not happening?
It might be possible to add the file as a dependency to the swig library target explicitly in one of the swig related macros in CMake/ using add_dependency(...) or in the "DEPENDS" block of a subsequent custom_command. It should also be listed as an "OUTPUT" of the custom command which creates it...
Abe
On Oct 29, 2008, at 2:03 PM, J. Davison de St. Germain wrote: Thanks Abe! "make clean" was definitely not the route I wanted to go. Now, the next step is, do you know how to add a dependency to the (c)make system that will rebuild lib/manta.py as needed? Any pointers on this would be most appreciated. Thanks, Dav Abe Stephens wrote:
" type="cite"> Removing the SwigInterface/mantaPYTHON_wrap.cxx* from the build directory, might be faster than a make clean. Abe On Oct 28, 2008, at 1:52 PM, James Bigler wrote: It should be built in SwigInterface/CMakeLists.txt. It gets copied to lib as a post build step, so there isn't an explicit rule to build it. Copying gets done after manta.py is created. You should poke around your build directory for the other manta.py file and copy it by hand. James On Tue, Oct 28, 2008 at 1:45 PM, J. Davison de St. Germain <
">
> wrote: Hi, If I blow away lib/manta.py, it never comes back... Can someone tell me how to get it back, and where in the cmake system it is generated? Thanks, Dav -- ----------------------------------------------------------------------- - J. Davison de St. Germain
" target="_blank">
(801) 581-4078 - - Chief Software Engineer http://www.cs.utah.edu/~dav - - SCI Institute, SE C-SAFE University of Utah - ----------------------------------------------------------------------- --
-----------------------------------------------------------------------
- J. Davison de St. Germain
">
(801) 581-4078 -
- Chief Software Engineer http://www.cs.utah.edu/~dav -
- SCI Institute, SE C-SAFE University of Utah -
-----------------------------------------------------------------------
|