Skip to content
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

Add file to configure Conan as a cmake dependency provider #474

Conversation

jcar87
Copy link
Contributor

@jcar87 jcar87 commented Mar 9, 2023

  • Add conan_provider.cmake with logic to call CMake's SET_DEPENDENCY_PROVIDER - note that we could reuse conaninstall.cmake and do it there directly.
  • Amend tests to pass conan_provider.cmake via CMAKE_PROJECT_TOP_LEVEL_INCLUDES
  • Add logic to handle CMake -> conan compiler name for Apple Clang
  • Add logic to handle figuring out where the generated files end up at (since this depends on the layout defined, if one is defined)
  • Add logic to persist that directory across CMake runs (as conan is only invoked once).

@jcar87 jcar87 requested a review from memsharded March 9, 2023 17:17
@CLAassistant
Copy link

CLAassistant commented Mar 9, 2023

CLA assistant check
All committers have signed the CLA.

@memsharded memsharded merged commit df333fe into conan-io:experiment/cmake_project_include Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants