glog-modules.cmake.in 686 B

123456789101112131415161718
  1. cmake_policy (PUSH)
  2. cmake_policy (SET CMP0057 NEW)
  3. if (CMAKE_VERSION VERSION_LESS 3.3)
  4. message (FATAL_ERROR "glog-modules.cmake requires the consumer "
  5. "to use CMake 3.3 (or newer)")
  6. endif (CMAKE_VERSION VERSION_LESS 3.3)
  7. set (glog_MODULE_PATH "@glog_FULL_CMake_DATADIR@")
  8. list (APPEND CMAKE_MODULE_PATH ${glog_MODULE_PATH})
  9. if (NOT glog_MODULE_PATH IN_LIST CMAKE_MODULE_PATH)
  10. message (FATAL_ERROR "Cannot add '${glog_MODULE_PATH}' to "
  11. "CMAKE_MODULE_PATH. This will cause glog-config.cmake to fail at "
  12. "locating required find modules. Make sure CMAKE_MODULE_PATH is not a cache variable.")
  13. endif (NOT glog_MODULE_PATH IN_LIST CMAKE_MODULE_PATH)
  14. cmake_policy (POP)