auto8888
V2EX  ›  C++

CMake 链接库时,如何链接指定版本的库?

  •  
  •   auto8888 · Jan 8, 2021 · 2514 views
    This topic created in 1994 days ago, the information mentioned may be changed or developed.

    比如 ffmpeg 在 /usr/lib/里面既有 libavformat.so.57 又有 libavformat.so.58 。

    2 replies    2021-01-08 12:05:30 +08:00
    juzipeek
        2
    juzipeek  
       Jan 8, 2021
    可以使用 find_package 指令, 上一条回复是链接地址
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   900 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 20:39 · PVG 04:39 · LAX 13:39 · JFK 16:39
    ♥ Do have faith in what you're doing.