init - 初始化项目
This commit is contained in:
13
cmake/checks/cxx11.cpp
Normal file
13
cmake/checks/cxx11.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600)
|
||||
// OK
|
||||
#else
|
||||
#error "C++11 is not supported"
|
||||
#endif
|
||||
|
||||
static int test() { return 0; }
|
||||
|
||||
int main()
|
||||
{
|
||||
auto res = test();
|
||||
return res;
|
||||
}
|
||||
Reference in New Issue
Block a user