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

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

Open
SpaceIm opened this issue Sep 23, 2022 · 3 comments
Open

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

SpaceIm opened this issue Sep 23, 2022 · 3 comments

Comments

@SpaceIm
Copy link

SpaceIm commented Sep 23, 2022

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:

    def generate(self):
        self.output.info(f"bindirs: {self.dependencies[<recipename>].cpp_info.bindirs}")
        self.output.info(f"includedirs: {self.dependencies[<recipename>].cpp_info.includedirs}")
        self.output.info(f"libdirs: {self.dependencies[<recipename>].cpp_info.libdirs}")
        self.output.info(f"resdirs: {self.dependencies[<recipename>].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 conan-io/conan-center-index@30e4ab1)

@SpaceIm
Copy link
Author

SpaceIm commented Sep 23, 2022

Actually it seems that layout() set resdirs to empty

/cc @uilianries @SSE4 @prince-chrismc for documentation in CCI

@memsharded
Copy link
Member

Yes, it is true, layout() changes the defaults, as resdirs was not been used very much, we decided that the default should be empty.

Moving this issue to docs.

@memsharded memsharded transferred this issue from conan-io/conan Sep 24, 2022
@uilianries
Copy link
Member

Good to know, so we don't need to update it in recipes.

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

No branches or pull requests

3 participants