Hi Brad,

You need the custom command to run every time the build starts:
...
copy-if-different check.  The key is then to make the library depend
on this rule at a *target* level, but only on version.h at a *file* level.

Because such a custom target is "always considered out of date", the library
that depends on it is also considered out of date and would be rebuilt, even
though no source code changed. Assembling our 100+ object files into a large
library is fast on Linux but dead slow on Windows/Cygwin. At least it is much
slower than reading and comparing the timestamps of the 100+ files (no,
disabling the virus scanner didn't help much;)

From the fact that it is possible and simple to define library targets that
depend on object files that depend on source code that depend on header files,
I hoped that it would be just easy to have arbitrary other targets depend
on similarly complex input (in my case: the same minus one file). I put some
hope in the "output_required_files()" command but it always outputs nil.

Kolja


--
mr. kolja waschk - haubach-39 - 22765 hh - germany
fon +49 40 889130-34 - fax -35 - http://www.ixo.de

_______________________________________________
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

Reply via email to