How to compile and deploy multiple contracts with different solidity versions

Hi
I wanted to fork safemoon contract
So the first thing i tried to compile the contract but it didn't compile because it had different solidity versions

So what should i do to solve this. I tried to split the contracts and compile one after another but it will compile just one and the rest won't compile because it had different solidity versions

I'm using remix ethereum to compile and deploy