ZLMediaKit/cmake/checks/atomic_check.cpp
Dw9 80a0e27d8c
link atomic library automatic when compile on raspberrypi (#1405)
* 增加检测atomic源文件

* 支持树莓派编译,自动检测atomic链接库

* 精简cmake操作
2022-01-29 22:40:08 +08:00

12 lines
119 B
C++

#include <atomic>
static int test()
{
std::atomic<long long> x;
return x;
}
int main()
{
return test();
}