On Fri, Mar 13, 2015 at 10:58 AM, Matthias Kuhn <matthias at opengis.ch> wrote: > So you will need to introduce some CMake magic to skip this part when > compiling without spatialite. In qgisapp.cpp: extern "C" { #include <spatialite.h> } so, I think that sources should be modified, too...