cmake: remove repetitive code in handling of NO_AES
cmake: remove repetitive code in handling of NO_AES

Minor eefactor only. No behavior or interface change in this commit.

ranok/bitmonero,ranok/bitmonero,eiabea/bitmonero,ranok/bitmonero,ranok/bitmonero,ranok/bitmonero,ranok/bitmonero,eiabea/bitmonero,eiabea/bitmonero,eiabea/bitmonero,eiabea/bitmonero,eiabea/bitmonero