[Omake] OCAMLFIND, OCAMLFINDFLAGS and -predicates

Kaspar Rohrer kaspar.rohrer at bluewin.ch
Wed Apr 25 16:27:02 PDT 2007


>> Now for the question: Is there a way in Omake to specify  
>> predicates for
>> `ocamlfind ocamlc / ocamlcp / ocamlopt /  ocamlmktop'? I have already
>> tried to set `OCAMLFINDFLAGS = "-predicates lablGL"', but then
>> `ocamlfind ocamldep' chokes because it does not accept the `- 
>> predicates'
>> argument'.
>
> Kaspar,
>
> I never used ocamlfind, so I do not really understand all the issues
> involved, but if this just boils down to passing the "-predicates
> lablGL" to "ocamlfind ocamlc" and "ocamlfind ocamlopt", then you just
> need to use
>
> OCAMLFLAGS += -predicates lablGL
>
> or
>
> OCAMLFLAGS += $"-predicates lablGL"
>
> if this is supposed to be passed as a single argument, not as two  
> arguments.
>
> Aleksey

Thanks Aleksey,

OCAMLFLAGS += -predicates lablGL did the trick for me. I wonder why I  
didn't think of this myself.

Kaspar


More information about the Omake mailing list