CMake commands specific to linux/BSDs not included for Apple systems.
Split this commit.