boost_prg_exec_monitor-config.cmake 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # Generated by Boost 1.72.0
  2. if(TARGET Boost::prg_exec_monitor)
  3. return()
  4. endif()
  5. if(Boost_VERBOSE OR Boost_DEBUG)
  6. message(STATUS "Found boost_prg_exec_monitor ${boost_prg_exec_monitor_VERSION} at ${boost_prg_exec_monitor_DIR}")
  7. endif()
  8. # Compute the include and library directories relative to this file.
  9. get_filename_component(_BOOST_CMAKEDIR "${CMAKE_CURRENT_LIST_DIR}/../" ABSOLUTE)
  10. # If the computed and the original directories are symlink-equivalent, use original
  11. if(EXISTS "D:/ReleaseBuild/boost_1_72_0/stage/lib/cmake")
  12. get_filename_component(_BOOST_CMAKEDIR_COMPUTED "${_BOOST_CMAKEDIR}" REALPATH)
  13. get_filename_component(_BOOST_CMAKEDIR_ORIGINAL "D:/ReleaseBuild/boost_1_72_0/stage/lib/cmake" REALPATH)
  14. if(_BOOST_CMAKEDIR_COMPUTED STREQUAL _BOOST_CMAKEDIR_ORIGINAL)
  15. set(_BOOST_CMAKEDIR "D:/ReleaseBuild/boost_1_72_0/stage/lib/cmake")
  16. endif()
  17. unset(_BOOST_CMAKEDIR_COMPUTED)
  18. unset(_BOOST_CMAKEDIR_ORIGINAL)
  19. endif()
  20. get_filename_component(_BOOST_INCLUDEDIR "${_BOOST_CMAKEDIR}/../../../" ABSOLUTE)
  21. get_filename_component(_BOOST_LIBDIR "${_BOOST_CMAKEDIR}/../" ABSOLUTE)
  22. # Create imported target Boost::prg_exec_monitor
  23. add_library(Boost::prg_exec_monitor UNKNOWN IMPORTED)
  24. set_target_properties(Boost::prg_exec_monitor PROPERTIES
  25. INTERFACE_INCLUDE_DIRECTORIES "${_BOOST_INCLUDEDIR}"
  26. INTERFACE_COMPILE_DEFINITIONS "BOOST_ALL_NO_LIB"
  27. )
  28. include(${CMAKE_CURRENT_LIST_DIR}/../BoostDetectToolset-1.72.0.cmake)
  29. if(Boost_DEBUG)
  30. message(STATUS "Scanning ${CMAKE_CURRENT_LIST_DIR}/libboost_prg_exec_monitor-variant*.cmake")
  31. endif()
  32. file(GLOB __boost_variants "${CMAKE_CURRENT_LIST_DIR}/libboost_prg_exec_monitor-variant*.cmake")
  33. macro(_BOOST_SKIPPED fname reason)
  34. if(Boost_VERBOSE OR Boost_DEBUG)
  35. message(STATUS " [ ] ${fname}")
  36. endif()
  37. list(APPEND __boost_skipped "${fname} (${reason})")
  38. endmacro()
  39. foreach(f IN LISTS __boost_variants)
  40. if(Boost_DEBUG)
  41. message(STATUS " Including ${f}")
  42. endif()
  43. include(${f})
  44. endforeach()
  45. unset(_BOOST_LIBDIR)
  46. unset(_BOOST_INCLUDEDIR)
  47. unset(_BOOST_CMAKEDIR)
  48. get_target_property(__boost_configs Boost::prg_exec_monitor IMPORTED_CONFIGURATIONS)
  49. if(__boost_variants AND NOT __boost_configs)
  50. set(__boost_message "No suitable build variant has been found.")
  51. if(__boost_skipped)
  52. set(__boost_message "${__boost_message}\nThe following variants have been tried and rejected:")
  53. foreach(s IN LISTS __boost_skipped)
  54. set(__boost_message "${__boost_message}\n* ${s}")
  55. endforeach()
  56. endif()
  57. set(boost_prg_exec_monitor_FOUND 0)
  58. set(boost_prg_exec_monitor_NOT_FOUND_MESSAGE ${__boost_message})
  59. unset(__boost_message)
  60. unset(__boost_skipped)
  61. unset(__boost_configs)
  62. unset(__boost_variants)
  63. unset(_BOOST_PRG_EXEC_MONITOR_DEPS)
  64. return()
  65. endif()
  66. unset(__boost_skipped)
  67. unset(__boost_configs)
  68. unset(__boost_variants)
  69. if(_BOOST_PRG_EXEC_MONITOR_DEPS)
  70. list(REMOVE_DUPLICATES _BOOST_PRG_EXEC_MONITOR_DEPS)
  71. if(Boost_VERBOSE OR Boost_DEBUG)
  72. message(STATUS "Adding boost_prg_exec_monitor dependencies: ${_BOOST_PRG_EXEC_MONITOR_DEPS}")
  73. endif()
  74. endif()
  75. foreach(dep_boost_prg_exec_monitor IN LISTS _BOOST_PRG_EXEC_MONITOR_DEPS)
  76. set(_BOOST_QUIET)
  77. if(boost_prg_exec_monitor_FIND_QUIETLY)
  78. set(_BOOST_QUIET QUIET)
  79. endif()
  80. set(_BOOST_REQUIRED)
  81. if(boost_prg_exec_monitor_FIND_REQUIRED)
  82. set(_BOOST_REQUIRED REQUIRED)
  83. endif()
  84. get_filename_component(_BOOST_CMAKEDIR "${CMAKE_CURRENT_LIST_DIR}/../" ABSOLUTE)
  85. find_package(boost_${dep_boost_prg_exec_monitor} 1.72.0 EXACT CONFIG ${_BOOST_REQUIRED} ${_BOOST_QUIET} HINTS ${_BOOST_CMAKEDIR})
  86. set_property(TARGET Boost::prg_exec_monitor APPEND PROPERTY INTERFACE_LINK_LIBRARIES Boost::${dep_boost_prg_exec_monitor})
  87. unset(_BOOST_QUIET)
  88. unset(_BOOST_REQUIRED)
  89. unset(_BOOST_CMAKEDIR)
  90. if(NOT boost_${dep_boost_prg_exec_monitor}_FOUND)
  91. set(boost_prg_exec_monitor_FOUND 0)
  92. set(boost_prg_exec_monitor_NOT_FOUND_MESSAGE "A required dependency, boost_${dep_boost_prg_exec_monitor}, has not been found.")
  93. unset(_BOOST_PRG_EXEC_MONITOR_DEPS)
  94. return()
  95. endif()
  96. endforeach()
  97. unset(_BOOST_PRG_EXEC_MONITOR_DEPS)
  98. mark_as_advanced(boost_prg_exec_monitor_DIR)