Removing unused code from CMake files

Authored by thomasfischer on May 21 2019, 9:17 PM.