[CMake] Swig dependencies
James Bigler
bigler at cs.utah.edu
Wed Jul 6 15:23:51 EDT 2005
Anton Deguet wrote:
> I believe this is listed as bug 1731 (or this might be a feature request
> depending on the point of view). Is there any chance that this might
> addressed before 2.2 is released?
I don't know anything about it being addressed before 2.2 is released,
but this is the link:
http://www.cmake.org/Bug/bug.php?op=show&bugid=1731
It looks like cmake is called to create cmake.depends. Does it parse
the file itself or use a compiler under the hood?
Thanks,
James
> On Wed, 2005-07-06 at 13:20, James Bigler wrote:
>
>>I have a swig target in my CMakeLists.txt file:
>>
>>SWIG_ADD_MODULE(manta python manta.i manta.cc manta.h)
>>
>>This will create a mantaPYTHON_wrap.cxx file along with the
>>corresponding object files: mantaPYTHON_wrap.o and manta.o.
>>
>>My manta.i file includes many files from my software library in order to
>>generate interfaces. My problem is that when of these header files
>>changes mantaPYTHON_wrap.cxx is not regenerated. I have to manually
>>touch manta.i in order to get it to be created.
>>
>>Is there a way to manually/automatically add dependencies to
>>mantaPYTHON_wrap.cxx, so that it will be remade when something other
>>than manta.i is changed?
>>
>> > cmake --version
>>cmake version 2.0.6
>>
>>swig has an option to generate dependencies for you (-MM,-M). How could
>>I use this list to add a dependency to manta.i?
>>
>>Thanks,
>>James
>>_______________________________________________
>>CMake mailing list
>>CMake at cmake.org
>>http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list