option(HOMEBREW_ALLOW_FETCHCONTENT"Allow FetchContent to be used in Homebrew builds"OFF)
if(HOMEBREW_ALLOW_FETCHCONTENT)
return()
endif()
macro(trap_fetchcontent_providermethoddepName)
message(FATAL_ERROR"Refusing to populate dependency '${depName}' with FetchContent while building in Homebrew, please use a formula dependency or add a resource to the formula.")