Skip to content

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.

2 participants