Describe the bug
glog fails to link gflags if used in a project that defines GFLAGS_USE_TARGET_NAMESPACE
Environment
To Reproduce
Steps to reproduce the behavior:
- ./vcpkg install glog --triplet=x64-windows-static
- The above will install both glog and its dependency gflags
- Create a dummy project with a CMakefile that does: set(GFLAGS_USE_TARGET_NAMESPACE ON) find_package(glog CONFIG REQUIRED) find_package(gflags CONFIG REQUIRED)
- Have a cmake target that target_link_libraries(blah glog::glog gflags::gflags_static)
Notice how target blah fails to link as glog depends on target gflags which is not defined due to the gflags:: namespace.
Expected behavior
glog should be able to find gflags::gflags in this case. More generally for the static build case it probably doesn't make a lot of sense to be able to mix gflags and gflags::gflags, so it should be possible to decide on either with or without namespace and have all dependent libraries respect that setting.
Failure logs
N/A
Additional context
N/A
Describe the bug
glog fails to link gflags if used in a project that defines GFLAGS_USE_TARGET_NAMESPACE
Environment
To Reproduce
Steps to reproduce the behavior:
Notice how target blah fails to link as glog depends on target gflags which is not defined due to the gflags:: namespace.
Expected behavior
glog should be able to find gflags::gflags in this case. More generally for the static build case it probably doesn't make a lot of sense to be able to mix gflags and gflags::gflags, so it should be possible to decide on either with or without namespace and have all dependent libraries respect that setting.
Failure logs
N/A
Additional context
N/A