On Monday 07 September 2009, Aaron Turner wrote: > I'm look for a way to tell cmake to not automatically remove certain > auto-generated files when the 'clean' target is invoked. > > Basically I have: > > add_custom_command(OUTPUT tcpbridge_opts.c tcpbridge_opts.h > COMMAND ${AUTOGEN} -L tcpedit tcpbridge_opts.def > DEPENDS tcpbridge_opts.def > ) > > And of course, other files depend on tcpbridge_opts.[ch] > > The problem is that I don't want tcpbridge_opts.[ch] deleted when > 'make clean' is run.
Why don't you want this file to be deleted ? Maybe an ADD_CUSTOM_TARGET() would be more suitable ? Alex _______________________________________________ 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