Fix issue with automatic setup of dependencies using externalproject_add.