Skip to content

CMake examples contain bad example for including conanbuildinfo.cmake #1080

Open
@sigiesec

Description

@sigiesec

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).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions