Fix CMakeLists.txt error for compatibility