Updated CMakeLists.txt and fixed a stupid bug.