CMake clang and c++0x

前端 未结 1 1069
独厮守ぢ
独厮守ぢ 2020-12-28 08:41

When using clang++, how can I make CMake use the -std=c++0x flag when compiling, but not when linking?

There are several other posts regarding using cla

相关标签:
1条回答
  • 2020-12-28 09:15

    Use ADD_DEFINITIONS("-std=c++0x") instead of setting CXX flags.

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