Fix some unused commands in CMake files.