fmt-config.cmake 999 B

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