Fixed a CMake configuration bug