-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update conan v2 imports for main recipe #23
Conversation
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
Hmm the install is being ran from the log nativium/targets/linux/verbs/setup.py Line 46 in 5425ca3
🤔 your layout says the source and build are the current directory. But I dont see the cmake list there. I think you might have missed pointing the layout to the correct locations |
https://docs.conan.io/en/latest/developing_packages/package_layout.html#declaring-the-layout You root seems to be 2 or 3 levels up. You CMAKELISTS.TXT is in the root so you do not need the subfolder AFAIK |
Hi @prince-chrismc, I tried this:
But in my case the command is executed from root:
It will run conan install inside build folder:
It will install into "build/[...]/conan" folder without the cmake toolchain files for build. And after, need run "build" target verb, that will build with my CMakeLists.txt and need pass/import the cmake file generated by setup command (this flow is correct for v2?):
It is strange, because with a new project ( |
You should read the layout docs I linked above. The intro explains what it's trying to do... were pretty swamped so I am not sure I'll have time to checkout and play with this but I'll try to answer you questions. You need to tell the recipe where to get information and where to put files. That's the role of layout. I would suggest manually setting up the layout. Set all the properties the same way you building framework does. I am not sure how you are using the template from Please push the code so I can see the logs 🙏 or post the error message. |
Hi @prince-chrismc, i have a lot of questions rsrsrsrs In my case, i only use conan for dependencies and not for build my full project. The
Current questions: 1 - Current project generate file |
That's a fair point! conan-io/conan-io.github.io#222 I call out a few things in that blog The new You should remove everything Conan specific from your cmake and use modern cmake to link your dependencies |
@prince-chrismc i call you on google chat...here is too slow... or we can talk on slack I defined my layout vars:
1 - When i call conan install the 2 - A file called 3 - The folder "source", "build", "generators" is appended to "root" folder, correct? |
I'll slack you an appointment slot in the AM :) we can do a zoom hopefully before I leave My night is your morning but should work nicely |
My english speak is bad, im BR ... i think that is better something to write rsrsrsrsrsrs There is any option? Im "Paulo Coutinho" on slack "Cpplang". |
@prince-chrismc i discover the problem after debug conan code. I set all the folder but when i call "cmake_layout(self)", it change all the folder. Example:
Basically, i cant change it. |
@prince-chrismc I created a project to test and understand the details and it appear to work now: |
Codecov ReportBase: 100.00% // Head: 100.00% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #23 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 3 3
Lines 13 13
=========================================
Hits 13 13 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
No description provided.