Use the cmake variables rather than if(TARGET)
It makes no difference when building sonnet standalone, but this allows to build sonnet as a submodule and still control whether to build the QML UI, independently from whether the target Qt::Quick exists in the overall project. (cherry picked from commit a7660c1a)
Please register or sign in to comment