-
Notifications
You must be signed in to change notification settings - Fork 48
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
provide example demonstrating CONAN_INCLUDE_DIRS_XXX #82
Comments
Oh hey I think I figured this out now, I was on the right path, you just have to make sure to require it for those variables to work:
and then I could see it was correct and adding the To be honest I don't even know if thats the way you're supposed to do it because that seems counter intuitive? I don't know, I just haven't had much luck finding the right answers maybe.. |
Thanks for your suggestion. find_package(mydep REQUIRED)
target_link_libraries(mylib_or_app mydep::mydep) The name of the target is by default the name of the package::package, but it can vary for open source third parties with different conventions. They will typically be printed on screen when |
Ah interesting, yeah I'm not really sure then I thought maybe I saw someone say that it had something to do with trying to use https://github.com/paigeadelethompson/clandestine/blob/master/CMakeLists.txt maybe if you wanna take a look at that and see if you can figure out why I had to do it that way feel free but for now everything seems to be working so I can't complain other than https://github.com/paigeadelethompson/clandestine/blob/master/src/modules/extra/CMakeLists.txt#L1 some of the pkg_FOUND names are really hard to guess. Stuff appears to be linking correctly but I'm not sure if I have to also install(pkgName) or if its statically linked or whats going on (haven't had much of a chance to test it just kinda got it together and building for now.) I put an action into workflows for building this if you wanna take a look at the build log in github instead of building yourself: https://github.com/paigeadelethompson/clandestine/actions/runs/4449257228/jobs/7813179909 |
yeah I couldn't quite figure out how to get XCode / CMake / Conan working together right either. XCode builds my project ok, but it's not picking up any of my Conan dependencies for some reason. I actually switched to using https://github.com/paigeadelethompson/clandestine/blob/services/ircd/src/CMakeLists.txt#L44 I wonder though I'm still using But I wonder now if maybe if In XCode what I'm noticing is that when I try to build, if(sqlite3_FOUND) will evaluate to true but |
I'm sorta noticing that the CONAN_INCLUDE_DIRS_XXX isn't substantiated by the CMakeDeps CMakeToolchain generators,
I had to go rooting around to find the INCLUDE DIR path names look like
But, it don't work. Is it broke? Why'd they even change this it looks like Conan 1.x did what it was supposed to do?
The text was updated successfully, but these errors were encountered: