conan-io / conan-io/docs

[bug] `self.dependencies[lib].cpp_info.resdirs` empty in test package

Open
#2,767 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
125
Forks
382
Avg merge
22h 39m
Merged PRs (30d)
21

Description

### Environment Details (include every applicable attribute)
* Operating System+version: Windows 10
* Compiler+version: Visual Studio 2022
* Conan version: 1.52.0
* Python version: 3.10.2

### Steps to reproduce (Include if Applicable)

In test_package:

```python
def generate(self):
self.output.info(f"bindirs: {self.dependencies[].cpp_info.bindirs}")
self.output.info(f"includedirs: {self.dependencies[].cpp_info.includedirs}")
self.output.info(f"libdirs: {self.dependencies[].cpp_info.libdirs}")
self.output.info(f"resdirs: {self.dependencies[].cpp_info.resdirs}")
```

run conan create

### Logs (Executed commands with output) (Include/Attach if Applicable)

```
libjpeg/9e (test package): bindirs: ['C:\\Users\\spaceim\\.conan\\data\\libjpeg\\9e\\_\\_\\package\\e9a552ebe8f994398de9ceee972f0ad207df0658\\bin']
libjpeg/9e (test package): includedirs: ['C:\\Users\\spaceim\\.conan\\data\\libjpeg\\9e\\_\\_\\package\\e9a552ebe8f994398de9ceee972f0ad207df0658\\include']
libjpeg/9e (test package): libdirs: ['C:\\Users\\spaceim\\.conan\\data\\libjpeg\\9e\\_\\_\\package\\e9a552ebe8f994398de9ceee972f0ad207df0658\\lib']
libjpeg/9e (test package): resdirs: []
```

(In libjpeg recipe, there is a cmake_layout, and resdirs is not modified in `package_info()`, see https://github.com/conan-io/conan-center-index/pull/13123/commits/30e4ab1c0a00a2f03d98ddc137d7dda7cfb54c56)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the test_package generate() method and reproduce the reported bindirs, includedirs, libdirs, and resdirs output using Conan 1.52.0 on the stated environment. Compare the result with the libjpeg recipe's cmake_layout and package_info() behavior; done means the expected resdirs behavior is established and the relevant documentation or issue guidance is updated.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
build-system, documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.