MacOS deployment target as a usage requirement?

The only way I’m aware of to set the MacOS deployment target is the CMAKE_OSX_DEPLOYMENT_TARGET variable. But it occurs to me that certain C++ features require a minimum OS version, so why can’t libraries express their minimum required MacOS version as a usage requirement?