CLion disable C++98 mode in favour of C++11

后端 未结 1 1355
Happy的楠姐
Happy的楠姐 2021-02-09 15:35

I\'m trying to compile some code using C++11 only syntax in JetBrains CLion, so I wish to disable C++98 mode. I followed the instructions accordance of this StackOverflow questi

相关标签:
1条回答
  • 2021-02-09 16:08

    This has been resolved by adding add_definitions(-std=c++11) to the end of CMakeLists.txt instead of in ALT+SHIFT+F10's command line arguments.

    0 讨论(0)
提交回复
热议问题