设置CMake生成的Eclipse项目以识别像std :: to_string()

时间:2017-02-02 19:19:20

标签: c++ eclipse c++11

使用Eclipse 3.8.1,我使用带有两个子项目的CMake生成了一个C ++项目。

两个子项目都指定

# Use C++11 to compile your pass (i.e., supply -std=c++11).
target_compile_features(OpaquePass PRIVATE cxx_range_for cxx_auto_type)

在他们的CMakeLists.txt。

现在,这似乎不起作用,因为Eclipse无法识别像std::to_string()这样的方法。

我自己尝试配置Eclipse,但右键单击项目属性,我得到以下选项:

enter image description here

我似乎无法为GCC指定任何标志或自定义行为。如何使用C ++ 11使Eclipse正常运行?

0 个答案:

没有答案