-
Notifications
You must be signed in to change notification settings - Fork 980
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
[bug] FMT missing builddirs for the component #11870
[bug] FMT missing builddirs for the component #11870
Comments
I've been able to reproduce and debug, I'll provide a fix for the next release. |
I realized that is not a bug in Conan, this cames from the recipe of includedirs = ["include"]
libdirs = ["lib"]
bindirs = ["bin"] So, In case the recipe has some build script, it has to declare the builddirs in the component accordingly: def package_info():
...
self.cpp_info.components["_fmt"].builddirs = [""]
... I'm transferring the issue to the conan-center-index repository. Thanks |
@lasote, I don't understand. |
According to https://docs.conan.io/en/latest/reference/generators/cmake_paths.html, it looks like a bug. In the file generated by |
@lasote Context is a project that relies on |
|
Transfering back to conan. So now I have to discuss if we should "fix" the |
IMHO the documentation isn't wrong. What was documented aligned with our expectations and observations even if the implementation had different (but then compatible) semantics. The change in behavior actually breaks reasonable expectations that recipe authors may have after reading the docs. As a side-note: There is no clear indication in the docs that the |
That is True but the code of the
That is also True, but FYI we stopped long ago to develop Conan 1.X since we are working with 2.X beta. Anyway I've talked with the team and we will "fix" the |
This has been fixed at #11883 and will be released at 1.51.3 |
Environment Details
Steps to reproduce
In an empty directory create a
conanfile.txt
with the following content:Issue
conan install .
and inspectconan_paths.cmake
:Expectation:
CMAKE_MODULE_PATH
andCMAKE_PREFIX_PATH
contain the value ofCONAN_FMT_ROOT
Actual: Neither variable contains the value of
CONAN_FMT_ROOT
.Possible cause
The
cmake_paths
generator generates theCMAKE_*
variables by concatenating thebuild_paths
arrays of the dependencies. The default value for this path (which would be the correct value here) is overriden in_call_package_info
inconans/client/installer.py
ifhasattr(conanfile, "layout")
is true.The correct value is set in
conan/client/installer.py:659
:But it is later overridden in
conan/client/installer.py:679
:The text was updated successfully, but these errors were encountered: