Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

glog assumes that if gflags is available, it has been built with GFLAGS_USE_TARGET_NAMESPACE=OFF #683

@bucurb

Description

@bucurb

On this line:

target_link_libraries (glog PUBLIC gflags)

the glog CMake target adds a dependency to the gflags CMake target. The latter is only available if gflags has been built with GFLAGS_USE_TARGET_NAMESPACE=OFF. Otherwise, the correct target is gflags::gflags. This is causing linker errors, see for instance this issue.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions