added extra check so the project compiles when it's added into a parent project with other subprojects