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

posted @ 2017-09-05 21:20  小萝、卜  阅读(139)  评论(0编辑  收藏  举报