conan-io / conan-io/docs

CMake examples contain bad example for including conanbuildinfo.cmake

Open
#1,080 2 comments 0 reactions 1 assignee Claimed by @danimtb View on GitHub
stage: triaging whiteboard
Dominant language
C++
Stars
125
Forks
382
Avg merge
22h 39m
Merged PRs (30d)
21

Description

Most (?) CMake examples suggest to include the conanbuildinfo.cmake file as follows:
```
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
```
However, this is incompatible with using conan workspaces. CMAKE_CURRENT_BINARY_DIR should be used instead (as in the conan workspaces example repository).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.