禁用 CMake 本身生成的 Warning, 比如 CMake Deprecation Warning at CMakeForceCompiler.cmake:83 (message): The CMAKE_FORCE_CXX_COMPILER macro is deprecated. Instead just set CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
除了 1L 的命令行, 还可以 set ( CMAKE_WARN_DEPRECATED 0 )
1
ivechan 2017-08-01 18:37:32 +08:00
-Wno-deprecated = Suppress deprecation warnings.
|
2
owt5008137 2017-08-01 23:11:46 +08:00 via Android
我一般都会把这种即将被抛弃的接口换掉。而不是仅仅是关掉 warning
|