question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] layout() method does not propagate includedirs to clients

See original GitHub issue

Environment Details (include every applicable attribute)

  • Operating System+version: Windows 10
  • Compiler+version: Visual Studio 2019
  • Conan version: 1.38.0
  • Python version: 3.8.3

I’m trying to use the new layout method but it seems it’s not working correctly. After my package is built with conan create test package build fails with the error:

Cannot open include file: 'foo.h': No such file or directory

In the generated solution file (I’m working with Visual Studio) the Additional Include Directories section is empty. It seems that the layout() method doesn’t propagate include directories to clients. It works neither with components nor without them. At the same time, the libraries, the client should link against, are propagated as intended (generators in use are: CMakeDeps and CMakeToolchain):

def layout(self):
          self.cpp.package.includedirs = ["foo/include"]  # not propagated
          self.cpp.package.libs = ["foo"]  # propagated
          self.cpp.package.components["foo"].includedirs = ["foo/include"]  # not propagated

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
memshardedcommented, Jul 21, 2021

We plan to branch 1.39 to be released next week, this Friday 23 if possible, it would be great to have feedback by then if there is a chance to be included in 1.39.

0reactions
gmikhailecommented, Jul 22, 2021

Thank you for the clarification.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Methods — conan 1.53.0 documentation
source()¶. Method used to retrieve the source code from any other external origin like github using $ git clone or just a regular...
Read more >
Releases · conan-io/conan
Docs:; Fix: Raise a clear error if settings.compiler is not defined for ... Docs:; Feature: New included_files() method in from conan.tools.scm import ...
Read more >
NEWS
Bug 4254 - SSH rekey during authentication can cause issues with clients. - Bug 4257 - Recursive SCP uploads of multiple directories not...
Read more >
Release Notes - ZooKeeper - Version 3.5.8
ZOOKEEPER-915 - Errors that happen during sync() processing at the leader do not get propagated back to the client. ZOOKEEPER-936 - zkpython is...
Read more >
It's Time To Do CMake Right | Pablo Arias
Not so long ago I got the task of rethinking our build system. The idea was to evaluate existing components, dependencies, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found