I found the solution. I added this to my recipe: S = "${WORKDIR}/git/ProjectA"
Regards, Michael >-----Original Message----- >From: yocto-boun...@yoctoproject.org [mailto:yocto- >boun...@yoctoproject.org] On Behalf Of Baumann, Michael >Sent: Wednesday, May 11, 2016 10:58 AM >To: yocto@yoctoproject.org >Subject: [yocto] recipe with prefix to sourcecode path > >Hi, > >I am using CMAKE and wonder how to add a prefix to my recipe so that >bitbake searches in the right directory for CMakeLists.txt. >I use the SRC_URI variable to pull from my repository. >I think the problem is that in the top level directory no CMakeLists.txt file >exists and I don't want to add one. > >Is there a way to define the search path for the CMakeLists.txt? > >I am unfortunately bound to this repository structure: > >GitRepo >├── ProjectA >│ ├── CMakeLists.txt >│ ├── source >│ │ ├── CMakeLists.txt >│ │ ├── CodeA >│ │ │ ├── A.cc >│ │ │ └── A.h >│ │ ├── CodeB >│ │ │ ├── B.cc >│ │ │ ├── B.h >│ │ └── main.cc >├── ProjectB >└── X >└── Y >└── Z > >Regards, >Michael >-- >_______________________________________________ >yocto mailing list >yocto@yoctoproject.org >https://lists.yoctoproject.org/listinfo/yocto -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto