Revert "[cmake] Move common code out of the condition."
Revert "[cmake] Move common code out of the condition."

This reverts commit 8f98a3b2bdfef3a30c6b513ea6c9b318b8d3e04b.
It causes duplicate cintdll targets and a race.

karies/root,olifre/root,karies/root,karies/root,root-mirror/root,karies/root,karies/root,olifre/root,karies/root,root-mirror/root,olifre/root,olifre/root,karies/root,olifre/root,root-mirror/root,root-mirror/root,root-mirror/root,root-mirror/root,olifre/root,olifre/root,root-mirror/root,karies/root,karies/root,root-mirror/root,olifre/root,root-mirror/root,olifre/root,olifre/root,karies/root,karies/root,root-mirror/root,olifre/root,root-mirror/root