Use -isystem instead of -I with CMake

后端 未结 3 1318
無奈伤痛
無奈伤痛 2020-12-09 07:32

Is there any way in CMake to force a path specified via include_directories (or perhaps through a different function) to use the -isystem flag instead of the -I flag when bu

3条回答
  •  无人及你
    2020-12-09 07:46

    You could try using CMAKE_C_FLAGS and CMAKE_CXX_FLAGS to add additional flags.

提交回复
热议问题