# How do I override a flag in TargetRules.cs?

**URL:** <https://forums.unrealengine.com/t/how-do-i-override-a-flag-in-targetrules-cs/787415>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [March 9, 2023, 8:44pm UTC](https://forums.unrealengine.com/t/how-do-i-override-a-flag-in-targetrules-cs/787415 "2023-03-09T20:44:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbrespawn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dbrespawn](https://forums.unrealengine.com/u/dbrespawn)\
**Post date:** [March 9, 2023, 8:44pm UTC](https://forums.unrealengine.com/t/how-do-i-override-a-flag-in-targetrules-cs/787415/1 "2023-03-09T20:44:20Z")

</div>

For our example, let’s use bUseEstimatedUtcNow. When it’s true, it adds a define for USE\_ESTIMATED\_UTCNOW to 1 and when it’s false the define is 0. It’s false by default.

Without editing TargetRules.cs to force it to be true, how am I supposed to set the value? I tried adding it into my project’s Project.Target.cs file but that didn’t do anything. I haven’t been able to find anywhere else.
