[CMake] Build order

Maxime Lecourt maxime.lecourt at gmail.com
Mon Jun 27 05:31:02 EDT 2011


Hello,

I'm using CMake to build OCaml libraries.
For that, I use a macro that I call in my CMakeLists.txt

As I have dependencies between my different libraries, I wrote my
CMakeLists.txt so the build happens in the right order, but when building,
libraries are built depending on alphabetical order.

add_ocaml_library(cabs SOURCES cabs.ml)
add_ocaml_library(algo SOURCES algo.ml)

(algo depends on cabs being already built)

How can I create a "add_ocaml_dependencies" macro ?
Or is there a way to force CMake to follow the build order in the
CMakeLists.txt ?

Regards

Maxime Lecourt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110627/c954aa93/attachment.htm>


More information about the CMake mailing list