On 2010-01-26 00:28+0100 Judicaël Bedouet wrote:

I see one solution : add a macro to create an only target with all OCaml
libraries and executables, but it's not perfect.

This issue should be straighforward to solve with proper dependencies for
_both_ custom targets and custom command OUTPUT files. We have our own
independent method of compiling OCaml libraries and executables which takes
care of such dependency issues correctly. See
http://plplot.svn.sourceforge.net/viewvc/plplot/trunk/bindings/ocaml/CMakeLists.txt?view=log,
http://plplot.svn.sourceforge.net/viewvc/plplot/trunk/bindings/ocaml/plcairo/CMakeLists.txt?view=log,
and
http://plplot.svn.sourceforge.net/viewvc/plplot/trunk/examples/ocaml/CMakeLists.txt?view=log.

Our method is pretty brute force (a series of add_custom commands and
add_custom targets) so we are open to adopting something different if this
current thread results in something that ultimately ends up as part
of a CMake release.

Note, our current method does work fine for parallel builds. Thus, it should
also be straightforward to make parallel builds work properly for any other
method of building ocaml libraries and apps if the necessary target and file
dependencies are handled correctly.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
_______________________________________________
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