MantisBT - CMake
View Issue Details
0001304CMakepublic2004-10-29 11:132005-04-04 16:46
Anton Deguet 
System Admin 
normalmajoralways
closedfixed 
 
 
0001304: ADD_SWIG_MODULE doesn't always clean the generated source file
In UseSWIG.cmake, the macro SWIG_ADD_MODULE specifies that the generated source file must be clean with the line:

SET_DIRECTORY_PROPERTIES(PROPERTIES
    ADDITIONAL_MAKE_CLEAN_FILES "${ADDITIONAL_MAKE_CLEAN_FILES};${swig_generated_sources}")

If in a given CMakeLists.txt (for a single directory), this macro is called only once, it works, i.e. make clean will clean the _wrap.cxx generated file. If the macro is called multiple times, the last _wrap.cxx is cleaned but not the other files. I guess something must get overwritten.
No tags attached.
Issue History

Notes
(0002265)
   
2005-04-04 16:46   
fixed in cvs