How to override Kconfig dependency loop build error

I want to have two Kconfig flags that are both booleans but the build will fail if both are set. My code below used to work in pre ncs3.0, I'm wondering if there's a better way to do this now, or if this build error can be fixed/removed from NCS?

Sample code:

Parsing /.../project/Kconfig
/opt/nordic/ncs/v3.0.1/zephyr/scripts/kconfig/kconfig.py: Dependency loop
===============

IS_TAG (defined at /.../project/Kconfig:13), with definition...

config IS_TAG
        bool "Device is a RTLS Tag"
        default n
        depends on !IS_ANCHOR
        help
          Whether the device is an UWB/RTLS Tag.

...depends on IS_ANCHOR (defined at /.../project/Kconfig:21), with definition...

config IS_ANCHOR
        bool "Device is a RTLS Anchor"
        default n
        depends on !IS_TAG
        help
          Whether the device is an UWB/RTLS Anchor.

...depends again on IS_TAG (defined at /.../project/Kconfig:13)

Related