我正在尝试编译一些将使用 CGAL 但使用会产生错误的包含文件的代码。错误说使用-std=c++0xor编译-std=gnu++0x。
如果我添加-std=c++0x或添加-std=gnu++0x到CGAL_CXX_FLAGSi,e
cmake -DCGAL_CXX_FLAGS='-std=c++0x or -std=gnu++0x -I等,它只会忽略我设置的内容CGAL_CXX_FLAGS。
如果我省略-std=c++0x或-std=gnu++0x从CGAL_CXX_FLAGS它设置 C++ 编译器标志没问题,但在编译包含文件时失败。