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

Allow conanfile to be generated #549

Open
wants to merge 1 commit into
base: develop2
Choose a base branch
from

Conversation

tadi
Copy link

@tadi tadi commented Aug 23, 2023

Instead of using CMAKE_SOURCE_DIR for the automatic detection of the conanfile.txt or conanfile.py, the conan_install function also checks if a <build_dir>/conanfile.txt or <build_dir>/conanfile.py exists. If yes, it will use those in the conan install run.

This allows to generate those files from within CMakeList.txt before the first find_package call happens.

Instead of using CMAKE_SOURCE_DIR for the automatic detection of the
conanfile.txt or conanfile.py, the conan_install function also checks
if a <build_dir>/conanfile.txt or <build_dir>/conanfile.py exists. If
yes, it will use those in the conan install run.

This allows to generate those files from within CMakeList.txt before
the first find_package call happens.
@CLAassistant
Copy link

CLAassistant commented Aug 23, 2023

CLA assistant check
All committers have signed the CLA.

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.

None yet

2 participants