This allows to avoid conflicts between third party gflags find modules floating around. If a package provide a local version of gflags find module, clients which locate glog will incorrectly use it. Another problem is a CMake error message "cmake_policy PUSH without matching POP" in nested find_package calls. In summary, we need to ensure to use the original gflags package config.
13 lines
216 B
CMake
13 lines
216 B
CMake
cmake_policy (PUSH)
|
|
cmake_policy (VERSION @glog_POLICY_VERSION@)
|
|
|
|
@PACKAGE_INIT@
|
|
|
|
include (CMakeFindDependencyMacro)
|
|
|
|
@gflags_DEPENDENCY@
|
|
|
|
include ("${CMAKE_CURRENT_LIST_DIR}/glog-targets.cmake")
|
|
|
|
cmake_policy (POP)
|