I am not sure, but I think you could also look into ADD_CUSTOM_COMMAND and it's PRE_LINK feature. You could run your own script before linking is done and replace lib4 target with what you want - lib4a version or lib4b. Denis