# Isolated completeness probe used by cmake/Dependencies.cmake. Imported
# targets created by a failed find_package stay scoped to this directory, so a
# subsequent FetchContent fallback can define its own Boost targets safely.
if(WIN32 AND NOT CYGWIN)
    set(_stacktrace_component stacktrace_windbg)
else()
    set(_stacktrace_component stacktrace_addr2line)
endif()
find_package(Boost CONFIG QUIET
    COMPONENTS ${_stacktrace_component} url)

if(TARGET Boost::${_stacktrace_component} AND TARGET Boost::url)
    set_property(GLOBAL PROPERTY VOID_COMPLETE_SYSTEM_BOOST TRUE)
endif()
