Updated CMakeLists

Removed unnecesary code for detecting OS