[bug] layout() method does not propagate includedirs to clients
See original GitHub issueEnvironment 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
- I’ve read the CONTRIBUTING guide.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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.
Thank you for the clarification.