1.mac 上sh编译脚本运行一次后要关闭命令行窗口,否则有缓存,修改cmakelist不生效
2.lua-rapidjson git上排名最前的那个编译不通过,使用https://github.com/smilehao/xlua-lib-build的编译通过
3.CMakeLists.txt中添加位置要注意,刚开始加到后面去了,蛋都碎了,加到 MARK_AS_ADVANCED(XLUA_PROJECT_DIR) 下方就好了
MARK_AS_ADVANCED(XLUA_PROJECT_DIR)#begin lua-rapidjsonset (RAPIDJSON_SRC lua-rapidjson/source/rapidjson.cpp)set_property( SOURCE ${RAPIDJSON_SRC} APPEND PROPERTY COMPILE_DEFINITIONS LUA_LIB)list(APPEND THIRDPART_INC lua-rapidjson/include)set (THIRDPART_SRC ${THIRDPART_SRC} ${RAPIDJSON_SRC})#end lua-rapidjson