abslConfig.cmake 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. # absl CMake configuration file.
  2. include(CMakeFindDependencyMacro)
  3. find_dependency(Threads)
  4. ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
  5. ####### Any changes to this file will be overwritten by the next CMake run ####
  6. ####### The input file was abslConfig.cmake.in ########
  7. get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
  8. macro(set_and_check _var _file)
  9. set(${_var} "${_file}")
  10. if(NOT EXISTS "${_file}")
  11. message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
  12. endif()
  13. endmacro()
  14. macro(check_required_components _NAME)
  15. foreach(comp ${${_NAME}_FIND_COMPONENTS})
  16. if(NOT ${_NAME}_${comp}_FOUND)
  17. if(${_NAME}_FIND_REQUIRED_${comp})
  18. set(${_NAME}_FOUND FALSE)
  19. endif()
  20. endif()
  21. endforeach()
  22. endmacro()
  23. ####################################################################################
  24. include ("${CMAKE_CURRENT_LIST_DIR}/abslTargets.cmake")