-
Notifications
You must be signed in to change notification settings - Fork 996
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
[editable] Have CMAKE_PREFIX_PATH point to the build directory #4808
Comments
Hi! if you use the
You will get:
|
Hi. Thanks for the response. As soon as I specify a layout file conan (1.13.2) crashes. Steps to reproduce with minimal example:
The output is
If the output:
|
Also happens with the conan in the |
I think my issue is a duplicate of #4819. |
Yes, it is a duplicate of that. I suggest to remove the "build_folder" entry in the layout and try again, we are already working to see how to fix that. |
Yes, it works without |
Hi
If I have an editable package: is it possible to add the build directory of an editable package to
CMAKE_PREFIX_PATH
? If it is not possible, consider this a feature request.My use case:
My CMake project defines a dummy Config file in the build directory so that I can add my dependencies with either
add_subdirectory
(likeconan workspace
does) orfind_package
(modern CMake approach). There is no standard CMake approach to do this yet. If I can have conan modifyCMAKE_PREFIX_PATH
so that the dummy config is findable with find_package then I any CMake project that callsfind_package(MyEditablePackage)
will "find" the editable package.To help us debug your issue please explain:
The text was updated successfully, but these errors were encountered: