Skip to content

CMake: Linking clickhouse-cpp-lib target will not set the include directories correctly. #244

Description

@KuribohG

I used add_subdirectory(third_party/clickhouse-cpp EXCLUDE_FROM_ALL) to import the targets of clickhouse library.

However in the root CMakeLists.txt of this project, the directories required is specified by INCLUDE_DIRECTORIES, not TARGET_INCLUDE_DIRECTORIES. So only linking the target in CMake is not enough, which is not encouraged by modern CMake practice.

Is it feasible to modify the CMake files, so external projects can import clickhouse more conveniently?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions