Based on just the code sample provided (we can’t see what the rest of your project is doing, such as how anything Qt-related is being set up), I’d guess it relates to the include_directories(${sqlite_prefix}/) call as well. If you remove that, what happens?