OS switching in the CMakeLists