# \[discussion\] \`COMPILE\_OPTIONS\` de-duplication "direction" (keep first vs keep last)

**URL:** https://discourse.cmake.org/t/discussion-compile-options-de-duplication-direction-keep-first-vs-keep-last/6264
**Category:** Development
**Created:** [August 14, 2022, 10:23pm UTC](https://discourse.cmake.org/t/discussion-compile-options-de-duplication-direction-keep-first-vs-keep-last/6264 "2022-08-14T22:23:30Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [March 1, 2023, 3:36pm UTC](https://discourse.cmake.org/t/discussion-compile-options-de-duplication-direction-keep-first-vs-keep-last/6264/7 "2023-03-01T15:36:04Z")

</div>

There’s no mechanism provided to ignore any given option specified as a usage requirement. To be able to skip, something like `$<$<NOT:$<TARGET_PROPERTY:skip_this_flag>>:-fsome-flag>` can be used so that consuming targets can set their own `skip_this_flag` property to ignore it.

---

_[View the full topic](https://discourse.cmake.org/t/discussion-compile-options-de-duplication-direction-keep-first-vs-keep-last/6264)._
