$ git clone https://github.com/gabime/spdlog.git
$ cd spdlog && mkdir build && cd build
新建toolchain.cmake文件
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_C_COMPILER /home/toolchain/toolchain_mips-5.2.0/bin/mips-linux-gnu-gcc)
SET(CMAKE_CXX_COMPILER /home/toolchain/toolchain_mips-5.2.0/bin/mips-linux-gnu-g++)
cmake … -DCMAKE_TOOLCHAIN_FILE=./toolchain.cmake