• 请不要在回答技术问题时复制粘贴 AI 生成的内容
RLib
V2EX  ›  程序员

CMake 禁用 Warning

  •  
  •   RLib ·
    Rprop · Aug 1, 2017 · 5940 views
    This topic created in 3211 days ago, the information mentioned may be changed or developed.

    禁用 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 )

    2 replies    2017-08-01 23:11:46 +08:00
    ivechan
        1
    ivechan  
       Aug 1, 2017
    -Wno-deprecated = Suppress deprecation warnings.
    owt5008137
        2
    owt5008137  
       Aug 1, 2017 via Android
    我一般都会把这种即将被抛弃的接口换掉。而不是仅仅是关掉 warning
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3098 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 00:33 · PVG 08:33 · LAX 17:33 · JFK 20:33
    ♥ Do have faith in what you're doing.