CMAKE学习
1.写了一个mutex 的程序,运行的时候出现terminate called after throwing an instance of 'std::system_error'
问题,百度发现,使用 g++ main.cpp -o main.out -pthread -std=c++11
编译可以运行,如何在cmakeLists 中体现呢?
https://stackoverflow.com/questions/17274032/c-threads-stdsystem-error-operation-not-permitted