If you want to turn it on/off this should work:
target_link_options(foo PRIVATE /DYNAMICBASE:NO)
# or
target_link_options(foo PRIVATE /DYNAMICBASE)
If you want to do this for all projects in your cmake project. Then do this before any target is defined, probably in your top level cmake files.
add_link_options(/DYNAMICBASE:NO)
I think that answers your question. Out of curiosity why do you want to disable DYNAMICBASE?