# MacOS deployment target as a usage requirement?

**URL:** https://discourse.cmake.org/t/macos-deployment-target-as-a-usage-requirement/15092
**Category:** Development
**Tags:** os:macos
**Created:** [August 21, 2025, 7:45pm UTC](https://discourse.cmake.org/t/macos-deployment-target-as-a-usage-requirement/15092 "2025-08-21T19:45:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![benthevining](https://discourse.cmake.org/user_avatar/discourse.cmake.org/benthevining/32/1924_2.png) [@benthevining](https://discourse.cmake.org/u/benthevining)
#### Post date: [August 21, 2025, 7:45pm UTC](https://discourse.cmake.org/t/macos-deployment-target-as-a-usage-requirement/15092/1 "2025-08-21T19:45:20Z")

</div>

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?
