# How to fix build warning D9025 (Overriding /GR with /GR-)

**URL:** https://discourse.cmake.org/t/how-to-fix-build-warning-d9025-overriding-gr-with-gr/878
**Category:** Usage
**Tags:** comp:msvc, gen:ninja, os:windows
**Created:** [March 28, 2020, 12:06am UTC](https://discourse.cmake.org/t/how-to-fix-build-warning-d9025-overriding-gr-with-gr/878 "2020-03-28T00:06:36Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/user_avatar/discourse.cmake.org/ymba9g8j9cjp0wloqf5y/32/1244_2.png) [@YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/u/YMba9g8j9CJp0wLoQf5y)
#### Post date: [March 28, 2020, 12:06am UTC](https://discourse.cmake.org/t/how-to-fix-build-warning-d9025-overriding-gr-with-gr/878/1 "2020-03-28T00:06:36Z")

</div>

My project needs to disable RTTI however I’m getting this build warning.  
This is all I’m doing.

```auto
target_compile_optons(foo_target PRIVATE /GR-)

```

---

_[View the full topic](https://discourse.cmake.org/t/how-to-fix-build-warning-d9025-overriding-gr-with-gr/878)._
