标签:gcc tac flow get tar mode 文档 etc comm
记录 CMake 相关知识。
Prelude:读文档一定要有耐心!
CMakeLists.txt
中 set(CMAKE_CXX_FLAGS -Wall)
不起作用Solution: 改用 target_compile_options(main PUBLIC -Wall)
Reference:
target_compile_options
GCC: Options to Request or Suppress Warnings
What is the modern method for setting general compile flags in CMake?
标签:gcc tac flow get tar mode 文档 etc comm
原文地址:https://www.cnblogs.com/Patt/p/9060156.html