provide example demonstrating CONAN_INCLUDE_DIRS_XXX

Open
#82 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
cmake
Domain
build-system

Research direction

Start by reproducing the reported behavior with the CMakeDeps and CMakeToolchain generators, then inspect the generated CMake files and the include_directories usage shown in the issue. Done means the examples clearly demonstrate how include directory paths should be obtained and clarify the difference from Conan 1.x behavior.

Written by the indexing model from the issue text.

Description

I'm sorta noticing that the CONAN_INCLUDE_DIRS_XXX isn't substantiated by the CMakeDeps CMakeToolchain generators,

❯ ls
BZip2-Target-release.cmake            ZLIB-release-armv8-data.cmake         conanbuild.sh                         libxcrypt-Target-release.cmake        pcre-Target-release.cmake
BZip2-release-armv8-data.cmake        ZLIBConfig.cmake                      conanbuildenv-release-armv8.sh        libxcrypt-config-version.cmake        pcre-config-version.cmake
BZip2Config.cmake                     ZLIBConfigVersion.cmake               conanrun.sh                           libxcrypt-config.cmake                pcre-config.cmake
BZip2ConfigVersion.cmake              ZLIBTargets.cmake                     conanrunenv-release-armv8.sh          libxcrypt-release-armv8-data.cmake    pcre-release-armv8-data.cmake
BZip2Targets.cmake                    argon2-Target-release.cmake           deactivate_conanbuild.sh              libxcryptTargets.cmake                pcreTargets.cmake
CMakeCache.txt                        argon2-config-version.cmake           deactivate_conanrun.sh                module-BZip2-Target-release.cmake     utf8cpp-Target-release.cmake
CMakeFiles                            argon2-config.cmake                   http_parser-Target-release.cmake      module-BZip2-release-armv8-data.cmake utf8cpp-config-version.cmake
CMakePresets.json                     argon2-release-armv8-data.cmake       http_parser-config-version.cmake      module-BZip2Targets.cmake             utf8cpp-config.cmake
FindBZip2.cmake                       argon2Targets.cmake                   http_parser-config.cmake              module-ZLIB-Target-release.cmake      utf8cpp-release-armv8-data.cmake
FindZLIB.cmake                        cmakedeps_macros.cmake                http_parser-release-armv8-data.cmake  module-ZLIB-release-armv8-data.cmake  utf8cppTargets.cmake
ZLIB-Target-release.cmake             conan_toolchain.cmake                 http_parserTargets.cmake              module-ZLIBTargets.cmake
❯ grep -r CONAN_INCLUDE_DIRS
~/inspircd/build master* ⇣⇡                                                                                                                                                                                    12:33:47 PM
❯

I had to go rooting around to find the INCLUDE DIR path names look like

include_directories(
  include/
  ${libxcrypt_INCLUDE_DIRS_RELEASE}
)

But, it don't work. Is it broke? Why'd they even change this it looks like Conan 1.x did what it was supposed to do?

Dominant language
Python
Stars
126
Forks
65
Avg merge
11h 3m
Merged PRs (30d)
4

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from conan-io/examples2

All issues in conan-io/examples2

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.