Invoke project() before setting PROJECT_SOURCE_DIR.