Thanks to Duncan Armundsen and Damian Zhaoying for the pointers (merges slightly with alchemy)
This avoids cmake messing up shell variables