Will follow up with a CMakeLists.txt patch once I get some time to test it.
@erco77 I took a stab at this (because it's CMake related) and it works well both with and without Cairo enabled. Here's my patch:
issue-358_cmake.diff.txt
I tried your patch (cd examples; make ) and noticed that it works with a Cairo-enabled lib but fails if FLTK is not built with Cairo. AFAICT the issue is in fltk-config --use-cairo ... which doesn't work correctly if Cairo is disabled (should it?).
Unfortunately I don't know of a simple way to "know" (in the Makefile) if FLTK has been configured with or w/o Cairo and fltk-config does a very questionable check (does lib/libfltk_cairo.a exist?) which is (a) error prone and (b) will not work in the future because I'm going to remove libfltk_cairo completely.
I believe the better way to go in examples/Makefile would be to use the variables defined in ../makeinclude which is included in examples/Makefile anyway but that's something I'd like to leave to you.
That said, feel free to use my CMake patch...
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/358/1013948122@github.com>
[ Direct Link to Message ] |