plot-qt does not compile
Bug #1079184 reported by
Johan Hake
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
Fix Released
|
Undecided
|
Joachim Haga |
Bug Description
In the hard coded CMakeList it is tested for DOLFIN_ENABLE_QT and DOLFIN_ENABLE_VTK and both are unset. Should it be tested agains HAS_QT and HAS_VTK instead?
Related branches
Changed in dolfin: | |
status: | New → Confirmed |
Changed in dolfin: | |
status: | In Progress → Fix Committed |
Changed in dolfin: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I believe HAS_FOO are defined at preprocessor level, not at cmake level. DOLFIN_ENABLE_FOO should be set if you compile as "make demo_plot-qt" in the tree, but perhaps not if you compile stand-alone? Is that the issue?
It is possible to use FOO_FOUND instead, but that will fail if the libraries are installed, but disabled in the DOLFIN build. I guess that could be resolved by suitable #ifdefs.