What cmake method is used to configure the Randomized Base Address option in Linker for VS2015 Project ?

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.


I think that answers your question. Out of curiosity why do you want to disable DYNAMICBASE?