Skip to content

[question] New MakeDeps generator and transitive dependencies #14691

Open
@db4

Description

@db4

What is your question?

To illustrate the problem consider the following conanfile.txt:

[requires]
cairo/1.17.4

For it conan install . -g MakeDeps generates the following fragment:

# cairo/1.17.4
CONAN_NAME_CAIRO = cairo
CONAN_VERSION_CAIRO = 1.17.4
CONAN_REFERENCE_CAIRO = cairo/1.17.4
CONAN_ROOT_CAIRO = D:/.conan2/b/cairo1902eee45304e/p

CONAN_INCLUDE_DIRS_CAIRO = $(CONAN_INCLUDE_DIR_FLAG)$(CONAN_ROOT_CAIRO)/include

CONAN_LIB_DIRS_CAIRO = $(CONAN_LIB_DIR_FLAG)$(CONAN_ROOT_CAIRO)/lib
...

Why CONAN_INCLUDE_DIRS_CAIRO doesn't include dependencies include dirs?

Of course, the problem is not specific to cairo package. MakeDeps never includes transitive dependencies to CONAN_INCLUDE_DIRS_pkg, CONAN_LIB_DIRS_pkg, CONAN_LIBS_pkg etc.

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions