I think I finally decided it. You need to go to your project settings and select the build tab. After that, select the parameter that you want conditionally, for example, other linker flags, and from the small drop-down list at the bottom left, select "Add assembly installation condition". Do this as many times as necessary.
Here is an image to explain this.
source
share