Remove duplicate entries from CMake build files